45871722 divided by 166 
We want to figure out the number of times 45871722 can be divided by 166.

On to step 1:
4 divided by 166 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (5) from the dividend, attach it to 4 and continue: 45 / 166

On to step 2:
When dividing 45 by 166, we get 0 with a remainder of 45.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 45 leaves us with 45.
Append the next digit (8) from the dividend to 45 and continue with: 458 / 166

Moving on to step 3:
When dividing 458 by 166, we get 2 with a remainder of 126.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 332 away from 458, we end up with 126.
Take the next digit (7) from the dividend and append it to 126, then repeat: 1267 / 166

Moving on to step 4:
If we divide 1267 by 166, we get 7 and a remainder of 105.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
If we take 1162 away from 1267, we end up with 105.
Grab the next digit (1) from the dividend, add it to 105, then carry on: 1051 / 166

Advancing to step 5:
If we divide 1051 by 166, we get 6 and a remainder of 55.
The number 6 becomes the next digit in our result. 
Result so far: 276.0
Subtracting 996 from 1051 leaves us with 55.
Take the next digit (7) from the dividend and append it to 55, then repeat: 557 / 166

On to step 6:
When dividing 557 by 166, we get 3 with a remainder of 59.
Use 3 as the next digit of our solution. 
Result so far: 2763.0
If we subtract 498 from 557, we get 59.
Fetch the next digit (2) from the dividend, attach it to 59 and continue: 592 / 166

On to step 7:
592 divided by 166 is 3 with a remainder of 94.
The next digit of our result is 3. 
Result so far: 27633.0
If we subtract 498 from 592, we get 94.
Include the next digit (2) from the dividend after 94, then repeat: 942 / 166

Advancing to step 8:
166 can be fit into 942 5 times, resulting in a remainder of 112.
The next digit of our result is 5. 
Result so far: 276335.0
The remainder is 112 after subtracting 830 from 942.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Advancing to step 9:
166 can be fit into 1120 6 times, resulting in a remainder of 124.
The number 6 becomes the next digit in our result. 
Result so far: 276335.6
Deduct 996 from 1120 and we're left with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Moving on to step 10:
The number 166 fits into 1240 7 times, leaving a remainder of 78.
Record the quotient 7 as the next digit in the result. 
Result so far: 276335.67
Subtracting 1162 from 1240 leaves us with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Going ahead to step 11:
If we divide 780 by 166, we get 4 and a remainder of 116.
Put 4 as the next digit of the answer. 
Result so far: 276335.674
If we subtract 664 from 780, we get 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Step 12:
166 can be fit into 1160 6 times, resulting in a remainder of 164.
The number 6 becomes the next digit in our result. 
Result so far: 276335.6746
Deduct 996 from 1160 and we're left with 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

On to step 13:
166 goes into 1640 9 times with a remainder of 146.
Use 9 as the next digit of our solution. 
Result so far: 276335.67469
Subtract 1494 from 1640 to get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Moving on to step 14:
The number 166 fits into 1460 8 times, leaving a remainder of 132.
The number 8 becomes the next digit in our result. 
Result so far: 276335.674698
Subtracting 1328 from 1460 leaves us with 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Step 15:
The number 166 fits into 1320 7 times, leaving a remainder of 158.
Record the quotient 7 as the next digit in the result. 
Result so far: 276335.6746987
Subtract 1162 from 1320 to get 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

On to step 16:
1580 divided by 166 is 9 with a remainder of 86.
Put 9 as the next digit of the answer. 
Result so far: 276335.67469879
Subtracting 1494 from 1580 leaves us with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

After the division, we end up with 276335.67469879 and a remainder of 8.6e-08.