Let's divide 77875999 by 166
The aim is to understand the frequency of 166 in 77875999.

On to step 1:
7 divided by 166 is 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 166

Let's proceed to step 2:
77 divided by 166 is 0 with a remainder of 77.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 77 and we're left with 77.
Take the next digit (8) from the dividend and append it to 77, then repeat: 778 / 166

Going ahead to step 3:
166 can be fit into 778 4 times, resulting in a remainder of 114.
Write down 4 as next digit of the result. 
Result so far: 4.0
The remainder is 114 after subtracting 664 from 778.
Bring next digit (7) of the dividend behind the 114 and repeat the process: 1147 / 166

Moving on to step 4:
The number 166 fits into 1147 6 times, leaving a remainder of 151.
Record the quotient 6 as the next digit in the result. 
Result so far: 46.0
If we subtract 996 from 1147, we get 151.
Include the next digit (5) from the dividend after 151, then repeat: 1515 / 166

Advancing to step 5:
166 can be fit into 1515 9 times, resulting in a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 469.0
If we subtract 1494 from 1515, we get 21.
Bring next digit (9) of the dividend behind the 21 and repeat the process: 219 / 166

On to step 6:
219 divided by 166 is 1 with a remainder of 53.
Use 1 as the next digit of our solution. 
Result so far: 4691.0
If we subtract 166 from 219, we get 53.
Include the next digit (9) from the dividend after 53, then repeat: 539 / 166

On to step 7:
When dividing 539 by 166, we get 3 with a remainder of 41.
The number 3 becomes the next digit in our result. 
Result so far: 46913.0
If we subtract 498 from 539, we get 41.
Grab the next digit (9) from the dividend, add it to 41, then carry on: 419 / 166

On to step 8:
If we divide 419 by 166, we get 2 and a remainder of 87.
Use 2 as the next digit of our solution. 
Result so far: 469132.0
Subtract 332 from 419 to get 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Step 9:
When dividing 870 by 166, we get 5 with a remainder of 40.
Record the quotient 5 as the next digit in the result. 
Result so far: 469132.5
If we take 830 away from 870, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 10:
The number 166 fits into 400 2 times, leaving a remainder of 68.
The next digit of our result is 2. 
Result so far: 469132.52
Subtract 332 from 400 to get 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 11:
166 goes into 680 4 times with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 469132.524
If we subtract 664 from 680, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 12:
166 can be fit into 160 0 times, resulting in a remainder of 160.
The next digit of our result is 0. 
Result so far: 469132.524
Subtract 0 from 160 to get 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Moving on to step 13:
If we divide 1600 by 166, we get 9 and a remainder of 106.
The number 9 becomes the next digit in our result. 
Result so far: 469132.52409
If we take 1494 away from 1600, we end up with 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Let's proceed to step 14:
166 can be fit into 1060 6 times, resulting in a remainder of 64.
Write down 6 as next digit of the result. 
Result so far: 469132.524096
If we take 996 away from 1060, we end up 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.

On to step 15:
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: 469132.5240963
Deduct 498 from 640 and we're left 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.

Let's proceed to step 16:
1420 divided by 166 is 8 with a remainder of 92.
Use 8 as the next digit of our solution. 
Result so far: 469132.52409638
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.

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