40166633 ÷ 878 
We want to divide 40166633 by 878.

On to step 1:
If we divide 4 by 878, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 878

Going ahead to step 2:
40 divided by 878 is 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 878

On to step 3:
When dividing 401 by 878, we get 0 with a remainder of 401.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 401 after subtracting 0 from 401.
Bring next digit (6) of the dividend behind the 401 and repeat the process: 4016 / 878

Step 4:
When dividing 4016 by 878, we get 4 with a remainder of 504.
Write down 4 as next digit of the result. 
Result so far: 4.0
The remainder is 504 after subtracting 3512 from 4016.
Include the next digit (6) from the dividend after 504, then repeat: 5046 / 878

Going ahead to step 5:
When dividing 5046 by 878, we get 5 with a remainder of 656.
The number 5 becomes the next digit in our result. 
Result so far: 45.0
If we subtract 4390 from 5046, we get 656.
Include the next digit (6) from the dividend after 656, then repeat: 6566 / 878

Step 6:
6566 divided by 878 is 7 with a remainder of 420.
Write down 7 as next digit of the result. 
Result so far: 457.0
If we take 6146 away from 6566, we end up with 420.
Append the next digit (3) from the dividend to 420 and continue with: 4203 / 878

Moving on to step 7:
878 can be fit into 4203 4 times, resulting in a remainder of 691.
Record the quotient 4 as the next digit in the result. 
Result so far: 4574.0
Subtract 3512 from 4203 to get 691.
Grab the next digit (3) from the dividend, add it to 691, then carry on: 6913 / 878

Moving on to step 8:
878 can be fit into 6913 7 times, resulting in a remainder of 767.
Write down 7 as next digit of the result. 
Result so far: 45747.0
Deduct 6146 from 6913 and we're left with 767.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7670, and continue the process.

Let's proceed to step 9:
The number 878 fits into 7670 8 times, leaving a remainder of 646.
Use 8 as the next digit of our solution. 
Result so far: 45747.8
Subtract 7024 from 7670 to get 646.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6460, and continue the process.

Going ahead to step 10:
878 can be fit into 6460 7 times, resulting in a remainder of 314.
Record the quotient 7 as the next digit in the result. 
Result so far: 45747.87
If we take 6146 away from 6460, we end up with 314.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3140, and continue the process.

On to step 11:
If we divide 3140 by 878, we get 3 and a remainder of 506.
Use 3 as the next digit of our solution. 
Result so far: 45747.873
Subtracting 2634 from 3140 leaves us with 506.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5060, and continue the process.

Step 12:
5060 divided by 878 is 5 with a remainder of 670.
Write down 5 as next digit of the result. 
Result so far: 45747.8735
The remainder is 670 after subtracting 4390 from 5060.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6700, and continue the process.

Going ahead to step 13:
The number 878 fits into 6700 7 times, leaving a remainder of 554.
The next digit of our result is 7. 
Result so far: 45747.87357
If we take 6146 away from 6700, we end up with 554.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5540, and continue the process.

Step 14:
When dividing 5540 by 878, we get 6 with a remainder of 272.
Use 6 as the next digit of our solution. 
Result so far: 45747.873576
Subtracting 5268 from 5540 leaves us with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

On to step 15:
When dividing 2720 by 878, we get 3 with a remainder of 86.
The number 3 becomes the next digit in our result. 
Result so far: 45747.8735763
The remainder is 86 after subtracting 2634 from 2720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

On to step 16:
878 goes into 860 0 times with a remainder of 860.
Use 0 as the next digit of our solution. 
Result so far: 45747.8735763
Subtracting 0 from 860 leaves us with 860.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8600, and continue the process.

The quotient of the division is 45747.8735763, and the remainder is 8.6e-07.