Let's divide 879036 by 40
We want to figure out the number of times 879036 can be divided by 40.

Moving on to step 1:
40 goes into 8 0 times with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 40

Step 2:
If we divide 87 by 40, we get 2 and a remainder of 7.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 80 from 87 leaves us with 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 40

Step 3:
If we divide 79 by 40, we get 1 and a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Deduct 40 from 79 and we're left with 39.
Append the next digit (0) from the dividend to 39 and continue with: 390 / 40

Advancing to step 4:
40 goes into 390 9 times with a remainder of 30.
Put 9 as the next digit of the answer. 
Result so far: 219.0
Deduct 360 from 390 and we're left with 30.
Grab the next digit (3) from the dividend, add it to 30, then carry on: 303 / 40

On to step 5:
40 goes into 303 7 times with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 2197.0
Subtracting 280 from 303 leaves us with 23.
Grab the next digit (6) from the dividend, add it to 23, then carry on: 236 / 40

Advancing to step 6:
40 can be fit into 236 5 times, resulting in a remainder of 36.
Use 5 as the next digit of our solution. 
Result so far: 21975.0
The remainder is 36 after subtracting 200 from 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 7:
40 goes into 360 9 times with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 21975.9
Subtract 360 from 360 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 8:
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: 21975.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.

Let's proceed to step 9:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 21975.9
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 quotient of the division is 21975.9, and the remainder is 0.0.