Let's divide 340021 by 40
We want to figure out the number of times 340021 can be divided by 40.

Going ahead to step 1:
If we divide 3 by 40, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 40

Going ahead to step 2:
40 goes into 34 0 times with a remainder of 34.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 34, we end up with 34.
Include the next digit (0) from the dividend after 34, then repeat: 340 / 40

Going ahead to step 3:
40 goes into 340 8 times with a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we subtract 320 from 340, we get 20.
Include the next digit (0) from the dividend after 20, then repeat: 200 / 40

Advancing to step 4:
When dividing 200 by 40, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 85.0
If we subtract 200 from 200, we get 0.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 40

On to step 5:
When dividing 2 by 40, we get 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 850.0
If we take 0 away from 2, we end up with 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 40

On to step 6:
40 can be fit into 21 0 times, resulting in a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 8500.0
Subtract 0 from 21 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 7:
The number 40 fits into 210 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 8500.5
Subtract 200 from 210 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 8500.52
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.

Let's proceed to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 8500.525
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 10:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 8500.525
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 8500.525
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 8500.525 with a balance of 0.0.