We're dividing 96593222 by 166 
The aim is to understand the frequency of 166 in 96593222.

Step 1:
If we divide 9 by 166, we get 0 and a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 166

Going ahead to step 2:
The number 166 fits into 96 0 times, leaving a remainder of 96.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 96 and we're left with 96.
Grab the next digit (5) from the dividend, add it to 96, then carry on: 965 / 166

Let's proceed to step 3:
The number 166 fits into 965 5 times, leaving a remainder of 135.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
The remainder is 135 after subtracting 830 from 965.
Grab the next digit (9) from the dividend, add it to 135, then carry on: 1359 / 166

Moving on to step 4:
166 goes into 1359 8 times with a remainder of 31.
Record the quotient 8 as the next digit in the result. 
Result so far: 58.0
If we take 1328 away from 1359, we end up with 31.
Include the next digit (3) from the dividend after 31, then repeat: 313 / 166

Advancing to step 5:
When dividing 313 by 166, we get 1 with a remainder of 147.
The next digit of our result is 1. 
Result so far: 581.0
Subtracting 166 from 313 leaves us with 147.
Fetch the next digit (2) from the dividend, attach it to 147 and continue: 1472 / 166

On to step 6:
When dividing 1472 by 166, we get 8 with a remainder of 144.
The number 8 becomes the next digit in our result. 
Result so far: 5818.0
Subtract 1328 from 1472 to get 144.
Include the next digit (2) from the dividend after 144, then repeat: 1442 / 166

Let's proceed to step 7:
The number 166 fits into 1442 8 times, leaving a remainder of 114.
Put 8 as the next digit of the answer. 
Result so far: 58188.0
If we subtract 1328 from 1442, we get 114.
Bring next digit (2) of the dividend behind the 114 and repeat the process: 1142 / 166

Going ahead to step 8:
When dividing 1142 by 166, we get 6 with a remainder of 146.
Put 6 as the next digit of the answer. 
Result so far: 581886.0
The remainder is 146 after subtracting 996 from 1142.
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 9:
If we divide 1460 by 166, we get 8 and a remainder of 132.
Write down 8 as next digit of the result. 
Result so far: 581886.8
Subtract 1328 from 1460 to get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Moving on to step 10:
1320 divided by 166 is 7 with a remainder of 158.
Use 7 as the next digit of our solution. 
Result so far: 581886.87
Deduct 1162 from 1320 and we're left with 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 11:
1580 divided by 166 is 9 with a remainder of 86.
Put 9 as the next digit of the answer. 
Result so far: 581886.879
If we take 1494 away from 1580, we end up 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.

Step 12:
The number 166 fits into 860 5 times, leaving a remainder of 30.
The next digit of our result is 5. 
Result so far: 581886.8795
If we subtract 830 from 860, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 13:
The number 166 fits into 300 1 times, leaving a remainder of 134.
The number 1 becomes the next digit in our result. 
Result so far: 581886.87951
Subtracting 166 from 300 leaves us with 134.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

Going ahead to step 14:
If we divide 1340 by 166, we get 8 and a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 581886.879518
If we take 1328 away from 1340, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 15:
When dividing 120 by 166, we get 0 with a remainder of 120.
Write down 0 as next digit of the result. 
Result so far: 581886.879518
The remainder is 120 after subtracting 0 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Step 16:
166 can be fit into 1200 7 times, resulting in a remainder of 38.
The number 7 becomes the next digit in our result. 
Result so far: 581886.87951807
Deduct 1162 from 1200 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

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