872556 ÷ 40 
We're looking to find how many times 40 goes into 872556.

Going ahead to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 40

Let's proceed to step 2:
If we divide 87 by 40, we get 2 and a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 80 away from 87, we end up with 7.
Bring next digit (2) of the dividend behind the 7 and repeat the process: 72 / 40

Let's proceed to step 3:
The number 40 fits into 72 1 times, leaving a remainder of 32.
Write down 1 as next digit of the result. 
Result so far: 21.0
Subtract 40 from 72 to get 32.
Fetch the next digit (5) from the dividend, attach it to 32 and continue: 325 / 40

On to step 4:
The number 40 fits into 325 8 times, leaving a remainder of 5.
Use 8 as the next digit of our solution. 
Result so far: 218.0
Subtracting 320 from 325 leaves us with 5.
Bring next digit (5) of the dividend behind the 5 and repeat the process: 55 / 40

Step 5:
The number 40 fits into 55 1 times, leaving a remainder of 15.
Write down 1 as next digit of the result. 
Result so far: 2181.0
Deduct 40 from 55 and we're left with 15.
Take the next digit (6) from the dividend and append it to 15, then repeat: 156 / 40

Let's proceed to step 6:
156 divided by 40 is 3 with a remainder of 36.
Put 3 as the next digit of the answer. 
Result so far: 21813.0
Subtract 120 from 156 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 7:
When dividing 360 by 40, we get 9 with a remainder of 0.
The next digit of our result is 9. 
Result so far: 21813.9
The remainder is 0 after subtracting 360 from 360.
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 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 21813.9
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.

On to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21813.9
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 21813.9, and the remainder is 0.0.