842754 divided by 40 
We're looking to find how many times 40 goes into 842754.

Step 1:
The number 40 fits into 8 0 times, leaving 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.
Bring next digit (4) of the dividend behind the 8 and repeat the process: 84 / 40

Advancing to step 2:
84 divided by 40 is 2 with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 80 from 84 to get 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 40

Step 3:
40 goes into 42 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 21.0
If we take 40 away from 42, we end up with 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 40

On to step 4:
27 divided by 40 is 0 with a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 210.0
Subtract 0 from 27 to get 27.
Fetch the next digit (5) from the dividend, attach it to 27 and continue: 275 / 40

Going ahead to step 5:
40 can be fit into 275 6 times, resulting in a remainder of 35.
The next digit of our result is 6. 
Result so far: 2106.0
If we take 240 away from 275, we end up with 35.
Bring next digit (4) of the dividend behind the 35 and repeat the process: 354 / 40

Step 6:
40 goes into 354 8 times with a remainder of 34.
The next digit of our result is 8. 
Result so far: 21068.0
Subtract 320 from 354 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 7:
40 goes into 340 8 times with a remainder of 20.
Write down 8 as next digit of the result. 
Result so far: 21068.8
Subtract 320 from 340 to get 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 8:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 21068.85
Subtract 200 from 200 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.

Going ahead to step 9:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21068.85
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.

Step 10:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 21068.85
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 21068.85, with a leftover of 0.0.