We look at the division of 79138087 by 166 
We want to figure out the number of times 79138087 can be divided by 166.

Advancing to step 1:
The number 166 fits into 7 0 times, leaving a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 166

Advancing to step 2:
When dividing 79 by 166, we get 0 with a remainder of 79.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 79, we get 79.
Bring next digit (1) of the dividend behind the 79 and repeat the process: 791 / 166

Advancing to step 3:
166 can be fit into 791 4 times, resulting in a remainder of 127.
The next digit of our result is 4. 
Result so far: 4.0
Deduct 664 from 791 and we're left with 127.
Grab the next digit (3) from the dividend, add it to 127, then carry on: 1273 / 166

Advancing to step 4:
166 goes into 1273 7 times with a remainder of 111.
Use 7 as the next digit of our solution. 
Result so far: 47.0
The remainder is 111 after subtracting 1162 from 1273.
Bring next digit (8) of the dividend behind the 111 and repeat the process: 1118 / 166

Going ahead to step 5:
166 goes into 1118 6 times with a remainder of 122.
Put 6 as the next digit of the answer. 
Result so far: 476.0
The remainder is 122 after subtracting 996 from 1118.
Take the next digit (0) from the dividend and append it to 122, then repeat: 1220 / 166

Advancing to step 6:
1220 divided by 166 is 7 with a remainder of 58.
Write down 7 as next digit of the result. 
Result so far: 4767.0
If we take 1162 away from 1220, we end up with 58.
Append the next digit (8) from the dividend to 58 and continue with: 588 / 166

Moving on to step 7:
When dividing 588 by 166, we get 3 with a remainder of 90.
The next digit of our result is 3. 
Result so far: 47673.0
If we subtract 498 from 588, we get 90.
Bring next digit (7) of the dividend behind the 90 and repeat the process: 907 / 166

Step 8:
907 divided by 166 is 5 with a remainder of 77.
Put 5 as the next digit of the answer. 
Result so far: 476735.0
The remainder is 77 after subtracting 830 from 907.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Going ahead to step 9:
The number 166 fits into 770 4 times, leaving a remainder of 106.
Write down 4 as next digit of the result. 
Result so far: 476735.4
Subtract 664 from 770 to get 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Advancing to step 10:
When dividing 1060 by 166, we get 6 with a remainder of 64.
Put 6 as the next digit of the answer. 
Result so far: 476735.46
Subtracting 996 from 1060 leaves us with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Moving on to step 11:
The number 166 fits into 640 3 times, leaving a remainder of 142.
Use 3 as the next digit of our solution. 
Result so far: 476735.463
Subtracting 498 from 640 leaves us with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

On to step 12:
1420 divided by 166 is 8 with a remainder of 92.
The next digit of our result is 8. 
Result so far: 476735.4638
If we take 1328 away from 1420, we end up with 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Going ahead to step 13:
920 divided by 166 is 5 with a remainder of 90.
Use 5 as the next digit of our solution. 
Result so far: 476735.46385
If we subtract 830 from 920, we get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Moving on to step 14:
166 goes into 900 5 times with a remainder of 70.
Use 5 as the next digit of our solution. 
Result so far: 476735.463855
If we take 830 away from 900, we end up with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

In conclusion, the division gives 476735.463855 with a balance of 7e-06.