40116996 divided by 879 
Let's see how many times 879 fits into 40116996.

Let's proceed to step 1:
If we divide 4 by 879, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 879

Moving on to step 2:
When dividing 40 by 879, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (1) from the dividend after 40, then repeat: 401 / 879

Moving on to step 3:
If we divide 401 by 879, we get 0 and a remainder of 401.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 401 and we're left with 401.
Include the next digit (1) from the dividend after 401, then repeat: 4011 / 879

Moving on to step 4:
The number 879 fits into 4011 4 times, leaving a remainder of 495.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we subtract 3516 from 4011, we get 495.
Fetch the next digit (6) from the dividend, attach it to 495 and continue: 4956 / 879

Let's proceed to step 5:
The number 879 fits into 4956 5 times, leaving a remainder of 561.
Record the quotient 5 as the next digit in the result. 
Result so far: 45.0
Subtract 4395 from 4956 to get 561.
Bring next digit (9) of the dividend behind the 561 and repeat the process: 5619 / 879

Going ahead to step 6:
879 goes into 5619 6 times with a remainder of 345.
Record the quotient 6 as the next digit in the result. 
Result so far: 456.0
If we take 5274 away from 5619, we end up with 345.
Include the next digit (9) from the dividend after 345, then repeat: 3459 / 879

Going ahead to step 7:
879 can be fit into 3459 3 times, resulting in a remainder of 822.
The next digit of our result is 3. 
Result so far: 4563.0
Deduct 2637 from 3459 and we're left with 822.
Include the next digit (6) from the dividend after 822, then repeat: 8226 / 879

Moving on to step 8:
879 can be fit into 8226 9 times, resulting in a remainder of 315.
Put 9 as the next digit of the answer. 
Result so far: 45639.0
Deduct 7911 from 8226 and we're left with 315.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3150, and continue the process.

Advancing to step 9:
The number 879 fits into 3150 3 times, leaving a remainder of 513.
The number 3 becomes the next digit in our result. 
Result so far: 45639.3
The remainder is 513 after subtracting 2637 from 3150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5130, and continue the process.

Let's proceed to step 10:
879 can be fit into 5130 5 times, resulting in a remainder of 735.
Use 5 as the next digit of our solution. 
Result so far: 45639.35
If we take 4395 away from 5130, we end up with 735.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7350, and continue the process.

Going ahead to step 11:
If we divide 7350 by 879, we get 8 and a remainder of 318.
Use 8 as the next digit of our solution. 
Result so far: 45639.358
The remainder is 318 after subtracting 7032 from 7350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Let's proceed to step 12:
The number 879 fits into 3180 3 times, leaving a remainder of 543.
Use 3 as the next digit of our solution. 
Result so far: 45639.3583
Deduct 2637 from 3180 and we're left with 543.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5430, and continue the process.

Going ahead to step 13:
5430 divided by 879 is 6 with a remainder of 156.
The number 6 becomes the next digit in our result. 
Result so far: 45639.35836
Subtracting 5274 from 5430 leaves us with 156.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Advancing to step 14:
879 can be fit into 1560 1 times, resulting in a remainder of 681.
The next digit of our result is 1. 
Result so far: 45639.358361
Deduct 879 from 1560 and we're left with 681.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6810, and continue the process.

Step 15:
If we divide 6810 by 879, we get 7 and a remainder of 657.
Record the quotient 7 as the next digit in the result. 
Result so far: 45639.3583617
Subtract 6153 from 6810 to get 657.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6570, and continue the process.

Going ahead to step 16:
879 can be fit into 6570 7 times, resulting in a remainder of 417.
Record the quotient 7 as the next digit in the result. 
Result so far: 45639.35836177
Subtract 6153 from 6570 to get 417.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4170, and continue the process.

The quotient of the division is 45639.35836177, and the remainder is 4.17e-07.