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

Moving on to step 1:
If we divide 2 by 166, we get 0 and a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 166

On to step 2:
21 divided by 166 is 0 with a remainder of 21.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 21, we get 21.
Take the next digit (7) from the dividend and append it to 21, then repeat: 217 / 166

On to step 3:
The number 166 fits into 217 1 times, leaving a remainder of 51.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 51 after subtracting 166 from 217.
Bring next digit (2) of the dividend behind the 51 and repeat the process: 512 / 166

Advancing to step 4:
512 divided by 166 is 3 with a remainder of 14.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
If we subtract 498 from 512, we get 14.
Include the next digit (2) from the dividend after 14, then repeat: 142 / 166

Let's proceed to step 5:
When dividing 142 by 166, we get 0 with a remainder of 142.
The number 0 becomes the next digit in our result. 
Result so far: 130.0
If we take 0 away from 142, we end up with 142.
Append the next digit (3) from the dividend to 142 and continue with: 1423 / 166

Step 6:
If we divide 1423 by 166, we get 8 and a remainder of 95.
Write down 8 as next digit of the result. 
Result so far: 1308.0
Deduct 1328 from 1423 and we're left with 95.
Bring next digit (2) of the dividend behind the 95 and repeat the process: 952 / 166

Moving on to step 7:
952 divided by 166 is 5 with a remainder of 122.
Write down 5 as next digit of the result. 
Result so far: 13085.0
If we take 830 away from 952, we end up with 122.
Append the next digit (8) from the dividend to 122 and continue with: 1228 / 166

Let's proceed to step 8:
166 goes into 1228 7 times with a remainder of 66.
Record the quotient 7 as the next digit in the result. 
Result so far: 130857.0
Subtracting 1162 from 1228 leaves us with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

On to step 9:
When dividing 660 by 166, we get 3 with a remainder of 162.
Write down 3 as next digit of the result. 
Result so far: 130857.3
If we take 498 away from 660, we end up with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Advancing to step 10:
166 can be fit into 1620 9 times, resulting in a remainder of 126.
The next digit of our result is 9. 
Result so far: 130857.39
Subtract 1494 from 1620 to get 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Let's proceed to step 11:
1260 divided by 166 is 7 with a remainder of 98.
Write down 7 as next digit of the result. 
Result so far: 130857.397
Deduct 1162 from 1260 and we're left with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

On to step 12:
980 divided by 166 is 5 with a remainder of 150.
Use 5 as the next digit of our solution. 
Result so far: 130857.3975
Subtracting 830 from 980 leaves us with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Advancing to step 13:
1500 divided by 166 is 9 with a remainder of 6.
The next digit of our result is 9. 
Result so far: 130857.39759
Subtracting 1494 from 1500 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 14:
The number 166 fits into 60 0 times, leaving a remainder of 60.
The next digit of our result is 0. 
Result so far: 130857.39759
Subtracting 0 from 60 leaves us with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 15:
166 can be fit into 600 3 times, resulting in a remainder of 102.
The next digit of our result is 3. 
Result so far: 130857.3975903
Subtract 498 from 600 to get 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

On to step 16:
When dividing 1020 by 166, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 130857.39759036
Deduct 996 from 1020 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

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