We're dividing 87611718 by 166 
We want to divide 87611718 by 166.

On to step 1:
The number 166 fits into 8 0 times, leaving a remainder of 8.
Put 0 as the next digit of the answer. 
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 / 166

Moving on to step 2:
If we divide 87 by 166, we get 0 and a remainder of 87.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 87, we end up with 87.
Include the next digit (6) from the dividend after 87, then repeat: 876 / 166

Moving on to step 3:
876 divided by 166 is 5 with a remainder of 46.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 830 from 876, we get 46.
Bring next digit (1) of the dividend behind the 46 and repeat the process: 461 / 166

On to step 4:
The number 166 fits into 461 2 times, leaving a remainder of 129.
Put 2 as the next digit of the answer. 
Result so far: 52.0
If we take 332 away from 461, we end up with 129.
Append the next digit (1) from the dividend to 129 and continue with: 1291 / 166

Moving on to step 5:
The number 166 fits into 1291 7 times, leaving a remainder of 129.
Use 7 as the next digit of our solution. 
Result so far: 527.0
Deduct 1162 from 1291 and we're left with 129.
Take the next digit (7) from the dividend and append it to 129, then repeat: 1297 / 166

Advancing to step 6:
The number 166 fits into 1297 7 times, leaving a remainder of 135.
The number 7 becomes the next digit in our result. 
Result so far: 5277.0
Subtracting 1162 from 1297 leaves us with 135.
Include the next digit (1) from the dividend after 135, then repeat: 1351 / 166

Going ahead to step 7:
When dividing 1351 by 166, we get 8 with a remainder of 23.
Record the quotient 8 as the next digit in the result. 
Result so far: 52778.0
Subtracting 1328 from 1351 leaves us with 23.
Take the next digit (8) from the dividend and append it to 23, then repeat: 238 / 166

Advancing to step 8:
When dividing 238 by 166, we get 1 with a remainder of 72.
The next digit of our result is 1. 
Result so far: 527781.0
Subtract 166 from 238 to get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 9:
The number 166 fits into 720 4 times, leaving a remainder of 56.
Use 4 as the next digit of our solution. 
Result so far: 527781.4
Subtracting 664 from 720 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

On to step 10:
When dividing 560 by 166, we get 3 with a remainder of 62.
The number 3 becomes the next digit in our result. 
Result so far: 527781.43
If we subtract 498 from 560, we get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Going ahead to step 11:
The number 166 fits into 620 3 times, leaving a remainder of 122.
The next digit of our result is 3. 
Result so far: 527781.433
Subtracting 498 from 620 leaves us with 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

The final outcome is 527781.433, with a leftover of 0.0122.