Let's divide 138986 by 54
The aim is to understand the frequency of 54 in 138986.

On to step 1:
1 divided by 54 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 54

Advancing to step 2:
54 goes into 13 0 times with a remainder of 13.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 13 to get 13.
Fetch the next digit (8) from the dividend, attach it to 13 and continue: 138 / 54

Moving on to step 3:
54 can be fit into 138 2 times, resulting in a remainder of 30.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 108 from 138, we get 30.
Grab the next digit (9) from the dividend, add it to 30, then carry on: 309 / 54

Step 4:
When dividing 309 by 54, we get 5 with a remainder of 39.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
If we subtract 270 from 309, we get 39.
Grab the next digit (8) from the dividend, add it to 39, then carry on: 398 / 54

Advancing to step 5:
398 divided by 54 is 7 with a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 257.0
Subtracting 378 from 398 leaves us with 20.
Bring next digit (6) of the dividend behind the 20 and repeat the process: 206 / 54

On to step 6:
The number 54 fits into 206 3 times, leaving a remainder of 44.
Write down 3 as next digit of the result. 
Result so far: 2573.0
The remainder is 44 after subtracting 162 from 206.
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 7:
54 can be fit into 440 8 times, resulting in a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 2573.8
If we take 432 away from 440, we end up 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 8:
54 goes into 80 1 times with a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 2573.81
If we subtract 54 from 80, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 9:
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: 2573.814
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.

Advancing to step 10:
54 goes into 440 8 times with a remainder of 8.
The next digit of our result is 8. 
Result so far: 2573.8148
The remainder is 8 after subtracting 432 from 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
If we divide 80 by 54, we get 1 and a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 2573.81481
Subtracting 54 from 80 leaves us 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.

Advancing to step 12:
260 divided by 54 is 4 with a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 2573.814814
If we take 216 away from 260, we end up 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.

Step 13:
440 divided by 54 is 8 with a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 2573.8148148
Deduct 432 from 440 and we're left 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.

Let's proceed to step 14:
54 can be fit into 80 1 times, resulting in a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 2573.81481481
If we subtract 54 from 80, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

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