We divide 879377 by 40
We're looking to find how many times 40 goes into 879377.

Advancing to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 40

Advancing to step 2:
40 can be fit into 87 2 times, resulting in a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
Subtracting 80 from 87 leaves us with 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 40

Advancing to step 3:
When dividing 79 by 40, we get 1 with a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Subtracting 40 from 79 leaves us with 39.
Take the next digit (3) from the dividend and append it to 39, then repeat: 393 / 40

Moving on to step 4:
393 divided by 40 is 9 with a remainder of 33.
Write down 9 as next digit of the result. 
Result so far: 219.0
The remainder is 33 after subtracting 360 from 393.
Bring next digit (7) of the dividend behind the 33 and repeat the process: 337 / 40

Moving on to step 5:
If we divide 337 by 40, we get 8 and a remainder of 17.
Put 8 as the next digit of the answer. 
Result so far: 2198.0
If we subtract 320 from 337, we get 17.
Bring next digit (7) of the dividend behind the 17 and repeat the process: 177 / 40

Step 6:
If we divide 177 by 40, we get 4 and a remainder of 17.
Write down 4 as next digit of the result. 
Result so far: 21984.0
Subtract 160 from 177 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 7:
The number 40 fits into 170 4 times, leaving a remainder of 10.
Write down 4 as next digit of the result. 
Result so far: 21984.4
If we take 160 away from 170, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
When dividing 100 by 40, we get 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 21984.42
Subtracting 80 from 100 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.

Advancing to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 21984.425
If we subtract 200 from 200, 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.

On to step 10:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21984.425
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.

Going ahead to step 11:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 21984.425
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.

After the division, we end up with 21984.425 and a remainder of 0.0.