842027 divided by 40 
We want to divide 842027 by 40.

On to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (4) from the dividend, add it to 8, then carry on: 84 / 40

On to step 2:
The number 40 fits into 84 2 times, leaving a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 4 after subtracting 80 from 84.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 40

On to step 3:
If we divide 42 by 40, we get 1 and a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 21.0
Deduct 40 from 42 and we're left with 2.
Grab the next digit (0) from the dividend, add it to 2, then carry on: 20 / 40

Moving on to step 4:
If we divide 20 by 40, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 210.0
The remainder is 20 after subtracting 0 from 20.
Append the next digit (2) from the dividend to 20 and continue with: 202 / 40

Advancing to step 5:
The number 40 fits into 202 5 times, leaving a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 2105.0
If we subtract 200 from 202, we get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 40

Moving on to step 6:
27 divided by 40 is 0 with a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 21050.0
Deduct 0 from 27 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
270 divided by 40 is 6 with a remainder of 30.
Record the quotient 6 as the next digit in the result. 
Result so far: 21050.6
If we take 240 away from 270, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 21050.67
If we take 280 away from 300, we end up 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:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 21050.675
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.

Advancing to step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 21050.675
Subtract 0 from 0 to 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.

Moving on to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 21050.675
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.

The final outcome is 21050.675, with a leftover of 0.0.