Let's divide 329897 by 40
We want to divide 329897 by 40.

On to step 1:
The number 40 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (2) from the dividend, attach it to 3 and continue: 32 / 40

On to step 2:
The number 40 fits into 32 0 times, leaving a remainder of 32.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 32 and we're left with 32.
Grab the next digit (9) from the dividend, add it to 32, then carry on: 329 / 40

Advancing to step 3:
The number 40 fits into 329 8 times, leaving a remainder of 9.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we subtract 320 from 329, we get 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 40

Advancing to step 4:
If we divide 98 by 40, we get 2 and a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 82.0
Subtract 80 from 98 to get 18.
Include the next digit (9) from the dividend after 18, then repeat: 189 / 40

Going ahead to step 5:
189 divided by 40 is 4 with a remainder of 29.
Put 4 as the next digit of the answer. 
Result so far: 824.0
The remainder is 29 after subtracting 160 from 189.
Grab the next digit (7) from the dividend, add it to 29, then carry on: 297 / 40

Step 6:
40 goes into 297 7 times with a remainder of 17.
Put 7 as the next digit of the answer. 
Result so far: 8247.0
Deduct 280 from 297 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 7:
40 can be fit into 170 4 times, resulting in a remainder of 10.
The next digit of our result is 4. 
Result so far: 8247.4
If we take 160 away from 170, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 8247.42
Subtracting 80 from 100 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 8247.425
Deduct 200 from 200 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 8247.425
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8247.425
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 8247.425 and a remainder of 0.0.