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

On to step 1:
The number 54 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 54

On to step 2:
The number 54 fits into 84 1 times, leaving a remainder of 30.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 54 from 84 and we're left with 30.
Include the next digit (0) from the dividend after 30, then repeat: 300 / 54

Step 3:
54 goes into 300 5 times with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
If we take 270 away from 300, we end up with 30.
Include the next digit (6) from the dividend after 30, then repeat: 306 / 54

On to step 4:
The number 54 fits into 306 5 times, leaving a remainder of 36.
Use 5 as the next digit of our solution. 
Result so far: 155.0
Subtract 270 from 306 to get 36.
Include the next digit (5) from the dividend after 36, then repeat: 365 / 54

Moving on to step 5:
The number 54 fits into 365 6 times, leaving a remainder of 41.
The next digit of our result is 6. 
Result so far: 1556.0
The remainder is 41 after subtracting 324 from 365.
Include the next digit (2) from the dividend after 41, then repeat: 412 / 54

On to step 6:
54 goes into 412 7 times with a remainder of 34.
Write down 7 as next digit of the result. 
Result so far: 15567.0
Deduct 378 from 412 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 7:
When dividing 340 by 54, we get 6 with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 15567.6
Subtract 324 from 340 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 8:
When dividing 160 by 54, we get 2 with a remainder of 52.
The next digit of our result is 2. 
Result so far: 15567.62
Subtracting 108 from 160 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 9:
The number 54 fits into 520 9 times, leaving a remainder of 34.
Record the quotient 9 as the next digit in the result. 
Result so far: 15567.629
Subtract 486 from 520 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 10:
340 divided by 54 is 6 with a remainder of 16.
The next digit of our result is 6. 
Result so far: 15567.6296
Deduct 324 from 340 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 11:
160 divided by 54 is 2 with a remainder of 52.
Record the quotient 2 as the next digit in the result. 
Result so far: 15567.62962
Deduct 108 from 160 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 12:
520 divided by 54 is 9 with a remainder of 34.
Write down 9 as next digit of the result. 
Result so far: 15567.629629
Subtract 486 from 520 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 13:
When dividing 340 by 54, we get 6 with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 15567.6296296
Deduct 324 from 340 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 14:
The number 54 fits into 160 2 times, leaving a remainder of 52.
Write down 2 as next digit of the result. 
Result so far: 15567.62962962
If we take 108 away from 160, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

The final result is 15567.62962962 with a remainder of 5.2e-08.