We divide 800874 by 40
Our goal is to divide 800874 by 40.

Moving on to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 40

Going ahead to step 2:
The number 40 fits into 80 2 times, leaving a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 80 from 80, we get 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 40

On to step 3:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
The remainder is 0 after subtracting 0 from 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 40

Moving on to step 4:
If we divide 8 by 40, we get 0 and a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 200.0
Subtract 0 from 8 to get 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 40

Step 5:
When dividing 87 by 40, we get 2 with a remainder of 7.
The next digit of our result is 2. 
Result so far: 2002.0
If we take 80 away from 87, we end up with 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 40

Advancing to step 6:
The number 40 fits into 74 1 times, leaving a remainder of 34.
The next digit of our result is 1. 
Result so far: 20021.0
If we take 40 away from 74, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 7:
40 goes into 340 8 times with a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 20021.8
Subtracting 320 from 340 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.

Moving on to step 8:
200 divided by 40 is 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 20021.85
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 9:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20021.85
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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 20021.85
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.

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