166967 divided by 54 
The aim is to understand the frequency of 54 in 166967.

Moving on to step 1:
If we divide 1 by 54, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 54

Step 2:
16 divided by 54 is 0 with a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 54

Going ahead to step 3:
54 goes into 166 3 times with a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 162 from 166, we get 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 54

Moving on to step 4:
If we divide 49 by 54, we get 0 and a remainder of 49.
Put 0 as the next digit of the answer. 
Result so far: 30.0
If we take 0 away from 49, we end up with 49.
Take the next digit (6) from the dividend and append it to 49, then repeat: 496 / 54

Moving on to step 5:
54 can be fit into 496 9 times, resulting in a remainder of 10.
Record the quotient 9 as the next digit in the result. 
Result so far: 309.0
Deduct 486 from 496 and we're left with 10.
Append the next digit (7) from the dividend to 10 and continue with: 107 / 54

Advancing to step 6:
If we divide 107 by 54, we get 1 and a remainder of 53.
Use 1 as the next digit of our solution. 
Result so far: 3091.0
If we subtract 54 from 107, we get 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Advancing to step 7:
54 can be fit into 530 9 times, resulting in a remainder of 44.
The next digit of our result is 9. 
Result so far: 3091.9
Subtracting 486 from 530 leaves us with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

On to step 8:
If we divide 440 by 54, we get 8 and a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 3091.98
Subtract 432 from 440 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 9:
80 divided by 54 is 1 with a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 3091.981
If we take 54 away from 80, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 10:
260 divided by 54 is 4 with a remainder of 44.
Write down 4 as next digit of the result. 
Result so far: 3091.9814
Subtracting 216 from 260 leaves us with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Let's proceed to step 11:
If we divide 440 by 54, we get 8 and a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 3091.98148
Subtracting 432 from 440 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 12:
54 can be fit into 80 1 times, resulting in a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 3091.981481
The remainder is 26 after subtracting 54 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 13:
The number 54 fits into 260 4 times, leaving a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 3091.9814814
The remainder is 44 after subtracting 216 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Going ahead to step 14:
The number 54 fits into 440 8 times, leaving a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 3091.98148148
Subtract 432 from 440 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

After the division, we end up with 3091.98148148 and a remainder of 8e-09.