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

Going ahead to step 1:
If we divide 5 by 54, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 54

Advancing to step 2:
54 goes into 57 1 times with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 54 away from 57, we end up with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 54

Moving on to step 3:
54 can be fit into 38 0 times, resulting in a remainder of 38.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
Subtracting 0 from 38 leaves us with 38.
Take the next digit (2) from the dividend and append it to 38, then repeat: 382 / 54

Advancing to step 4:
When dividing 382 by 54, we get 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 107.0
If we take 378 away from 382, we end up with 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 54

Going ahead to step 5:
The number 54 fits into 41 0 times, leaving a remainder of 41.
Write down 0 as next digit of the result. 
Result so far: 1070.0
The remainder is 41 after subtracting 0 from 41.
Bring next digit (8) of the dividend behind the 41 and repeat the process: 418 / 54

Step 6:
54 goes into 418 7 times with a remainder of 40.
Record the quotient 7 as the next digit in the result. 
Result so far: 10707.0
If we take 378 away from 418, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 7:
400 divided by 54 is 7 with a remainder of 22.
Use 7 as the next digit of our solution. 
Result so far: 10707.7
If we subtract 378 from 400, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 8:
220 divided by 54 is 4 with a remainder of 4.
The next digit of our result is 4. 
Result so far: 10707.74
The remainder is 4 after subtracting 216 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
When dividing 40 by 54, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 10707.74
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 10:
If we divide 400 by 54, we get 7 and a remainder of 22.
Write down 7 as next digit of the result. 
Result so far: 10707.7407
The remainder is 22 after subtracting 378 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 11:
54 goes into 220 4 times with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 10707.74074
If we subtract 216 from 220, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 12:
When dividing 40 by 54, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 10707.74074
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 13:
400 divided by 54 is 7 with a remainder of 22.
Write down 7 as next digit of the result. 
Result so far: 10707.7407407
Subtract 378 from 400 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 14:
The number 54 fits into 220 4 times, leaving a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 10707.74074074
Deduct 216 from 220 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

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