We look at the division of 687151 by 54 
The aim is to understand the frequency of 54 in 687151.

On to step 1:
54 goes into 6 0 times with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Bring next digit (8) of the dividend behind the 6 and repeat the process: 68 / 54

Going ahead to step 2:
54 can be fit into 68 1 times, resulting in a remainder of 14.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 14 after subtracting 54 from 68.
Grab the next digit (7) from the dividend, add it to 14, then carry on: 147 / 54

Step 3:
The number 54 fits into 147 2 times, leaving a remainder of 39.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
The remainder is 39 after subtracting 108 from 147.
Take the next digit (1) from the dividend and append it to 39, then repeat: 391 / 54

Advancing to step 4:
If we divide 391 by 54, we get 7 and a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 127.0
Deduct 378 from 391 and we're left with 13.
Take the next digit (5) from the dividend and append it to 13, then repeat: 135 / 54

Let's proceed to step 5:
When dividing 135 by 54, we get 2 with a remainder of 27.
The number 2 becomes the next digit in our result. 
Result so far: 1272.0
Subtracting 108 from 135 leaves us with 27.
Append the next digit (1) from the dividend to 27 and continue with: 271 / 54

Let's proceed to step 6:
When dividing 271 by 54, we get 5 with a remainder of 1.
Use 5 as the next digit of our solution. 
Result so far: 12725.0
If we subtract 270 from 271, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
10 divided by 54 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 12725.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
54 goes into 100 1 times with a remainder of 46.
Put 1 as the next digit of the answer. 
Result so far: 12725.01
If we take 54 away from 100, we end up with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Let's proceed to step 9:
When dividing 460 by 54, we get 8 with a remainder of 28.
Write down 8 as next digit of the result. 
Result so far: 12725.018
The remainder is 28 after subtracting 432 from 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 10:
54 goes into 280 5 times with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 12725.0185
If we take 270 away from 280, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 11:
54 goes into 100 1 times with a remainder of 46.
The next digit of our result is 1. 
Result so far: 12725.01851
Subtracting 54 from 100 leaves us with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Let's proceed to step 12:
460 divided by 54 is 8 with a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 12725.018518
If we subtract 432 from 460, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 13:
280 divided by 54 is 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 12725.0185185
The remainder is 10 after subtracting 270 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 14:
100 divided by 54 is 1 with a remainder of 46.
The next digit of our result is 1. 
Result so far: 12725.01851851
Subtract 54 from 100 to get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

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