We look at the division of 61583674 by 166 
The aim is to understand the frequency of 166 in 61583674.

Going ahead to step 1:
166 goes into 6 0 times with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 166

On to step 2:
The number 166 fits into 61 0 times, leaving a remainder of 61.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 61 after subtracting 0 from 61.
Include the next digit (5) from the dividend after 61, then repeat: 615 / 166

Let's proceed to step 3:
615 divided by 166 is 3 with a remainder of 117.
The next digit of our result is 3. 
Result so far: 3.0
If we take 498 away from 615, we end up with 117.
Include the next digit (8) from the dividend after 117, then repeat: 1178 / 166

Advancing to step 4:
If we divide 1178 by 166, we get 7 and a remainder of 16.
Use 7 as the next digit of our solution. 
Result so far: 37.0
If we take 1162 away from 1178, we end up with 16.
Append the next digit (3) from the dividend to 16 and continue with: 163 / 166

On to step 5:
When dividing 163 by 166, we get 0 with a remainder of 163.
The next digit of our result is 0. 
Result so far: 370.0
If we take 0 away from 163, we end up with 163.
Append the next digit (6) from the dividend to 163 and continue with: 1636 / 166

Let's proceed to step 6:
If we divide 1636 by 166, we get 9 and a remainder of 142.
Put 9 as the next digit of the answer. 
Result so far: 3709.0
Subtracting 1494 from 1636 leaves us with 142.
Append the next digit (7) from the dividend to 142 and continue with: 1427 / 166

Advancing to step 7:
166 can be fit into 1427 8 times, resulting in a remainder of 99.
Use 8 as the next digit of our solution. 
Result so far: 37098.0
If we subtract 1328 from 1427, we get 99.
Include the next digit (4) from the dividend after 99, then repeat: 994 / 166

Moving on to step 8:
When dividing 994 by 166, we get 5 with a remainder of 164.
Put 5 as the next digit of the answer. 
Result so far: 370985.0
If we subtract 830 from 994, we get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

Let's proceed to step 9:
166 can be fit into 1640 9 times, resulting in a remainder of 146.
Write down 9 as next digit of the result. 
Result so far: 370985.9
Subtracting 1494 from 1640 leaves us with 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Going ahead to step 10:
1460 divided by 166 is 8 with a remainder of 132.
The next digit of our result is 8. 
Result so far: 370985.98
If we subtract 1328 from 1460, we 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.

Let's proceed to step 11:
1320 divided by 166 is 7 with a remainder of 158.
The number 7 becomes the next digit in our result. 
Result so far: 370985.987
Subtracting 1162 from 1320 leaves us 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.

Let's proceed to step 12:
When dividing 1580 by 166, we get 9 with a remainder of 86.
Write down 9 as next digit of the result. 
Result so far: 370985.9879
Deduct 1494 from 1580 and we're left 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.

Going ahead to step 13:
The number 166 fits into 860 5 times, leaving a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 370985.98795
Deduct 830 from 860 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 14:
300 divided by 166 is 1 with a remainder of 134.
Put 1 as the next digit of the answer. 
Result so far: 370985.987951
If we take 166 away from 300, we end up 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.

Let's proceed to step 15:
When dividing 1340 by 166, we get 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 370985.9879518
Subtract 1328 from 1340 to get 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 16:
120 divided by 166 is 0 with a remainder of 120.
Record the quotient 0 as the next digit in the result. 
Result so far: 370985.9879518
Subtracting 0 from 120 leaves us with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

The final result is 370985.9879518 with a remainder of 1.2e-07.