We're dividing 879120 by 40 
We're looking to find how many times 40 goes into 879120.

Let's proceed to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 40

Step 2:
40 can be fit into 87 2 times, resulting in a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 80 from 87 leaves us with 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 40

Moving on to step 3:
40 can be fit into 79 1 times, resulting in a remainder of 39.
The next digit of our result is 1. 
Result so far: 21.0
Deduct 40 from 79 and we're left with 39.
Include the next digit (1) from the dividend after 39, then repeat: 391 / 40

Going ahead to step 4:
40 goes into 391 9 times with a remainder of 31.
Write down 9 as next digit of the result. 
Result so far: 219.0
If we subtract 360 from 391, we get 31.
Append the next digit (2) from the dividend to 31 and continue with: 312 / 40

Going ahead to step 5:
40 goes into 312 7 times with a remainder of 32.
The number 7 becomes the next digit in our result. 
Result so far: 2197.0
If we subtract 280 from 312, we get 32.
Grab the next digit (0) from the dividend, add it to 32, then carry on: 320 / 40

Let's proceed to step 6:
When dividing 320 by 40, we get 8 with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 21978.0
The remainder is 0 after subtracting 320 from 320.
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 7:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 21978.0
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 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: 21978.0
Deduct 0 from 0 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.

In conclusion, the division gives 21978.0 with a balance of 0.0.