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

Moving on to step 1:
The number 54 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 54

Going ahead to step 2:
If we divide 86 by 54, we get 1 and a remainder of 32.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 54 from 86 and we're left with 32.
Grab the next digit (5) from the dividend, add it to 32, then carry on: 325 / 54

On to step 3:
The number 54 fits into 325 6 times, leaving a remainder of 1.
Write down 6 as next digit of the result. 
Result so far: 16.0
Deduct 324 from 325 and we're left with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 54

Going ahead to step 4:
17 divided by 54 is 0 with a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 160.0
Subtract 0 from 17 to get 17.
Take the next digit (0) from the dividend and append it to 17, then repeat: 170 / 54

Advancing to step 5:
54 goes into 170 3 times with a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 1603.0
Subtracting 162 from 170 leaves us with 8.
Bring next digit (6) of the dividend behind the 8 and repeat the process: 86 / 54

Going ahead to step 6:
86 divided by 54 is 1 with a remainder of 32.
Write down 1 as next digit of the result. 
Result so far: 16031.0
Subtract 54 from 86 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 7:
If we divide 320 by 54, we get 5 and a remainder of 50.
Write down 5 as next digit of the result. 
Result so far: 16031.5
Subtracting 270 from 320 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Step 8:
The number 54 fits into 500 9 times, leaving a remainder of 14.
The number 9 becomes the next digit in our result. 
Result so far: 16031.59
If we take 486 away from 500, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
When dividing 140 by 54, we get 2 with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 16031.592
Deduct 108 from 140 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 10:
54 goes into 320 5 times with a remainder of 50.
Write down 5 as next digit of the result. 
Result so far: 16031.5925
If we take 270 away from 320, we end up with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Let's proceed to step 11:
54 can be fit into 500 9 times, resulting in a remainder of 14.
Put 9 as the next digit of the answer. 
Result so far: 16031.59259
If we take 486 away from 500, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 12:
When dividing 140 by 54, we get 2 with a remainder of 32.
Record the quotient 2 as the next digit in the result. 
Result so far: 16031.592592
Subtracting 108 from 140 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 13:
The number 54 fits into 320 5 times, leaving a remainder of 50.
Write down 5 as next digit of the result. 
Result so far: 16031.5925925
If we take 270 away from 320, we end up with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

On to step 14:
54 can be fit into 500 9 times, resulting in a remainder of 14.
Use 9 as the next digit of our solution. 
Result so far: 16031.59259259
If we subtract 486 from 500, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The final outcome is 16031.59259259, with a leftover of 1.4e-08.