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

On to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 40

On to step 2:
If we divide 87 by 40, we get 2 and a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 80 from 87, we get 7.
Grab the next digit (4) from the dividend, add it to 7, then carry on: 74 / 40

On to step 3:
The number 40 fits into 74 1 times, leaving a remainder of 34.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
The remainder is 34 after subtracting 40 from 74.
Take the next digit (8) from the dividend and append it to 34, then repeat: 348 / 40

Let's proceed to step 4:
40 can be fit into 348 8 times, resulting in a remainder of 28.
Write down 8 as next digit of the result. 
Result so far: 218.0
Deduct 320 from 348 and we're left with 28.
Grab the next digit (9) from the dividend, add it to 28, then carry on: 289 / 40

Going ahead to step 5:
When dividing 289 by 40, we get 7 with a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 2187.0
Subtract 280 from 289 to get 9.
Bring next digit (3) of the dividend behind the 9 and repeat the process: 93 / 40

Advancing to step 6:
When dividing 93 by 40, we get 2 with a remainder of 13.
Write down 2 as next digit of the result. 
Result so far: 21872.0
Subtract 80 from 93 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 7:
40 goes into 130 3 times with a remainder of 10.
The number 3 becomes the next digit in our result. 
Result so far: 21872.3
The remainder is 10 after subtracting 120 from 130.
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:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 21872.32
Deduct 80 from 100 and we're left 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.

On to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 21872.325
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.

Let's proceed to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21872.325
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.

Going ahead to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21872.325
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.

The quotient of the division is 21872.325, and the remainder is 0.0.