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

On 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
If we take 0 away from 5, we end up with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 54

Let's proceed to step 2:
The number 54 fits into 58 1 times, leaving a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 54 from 58 to get 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 54

Moving on to step 3:
54 can be fit into 49 0 times, resulting in a remainder of 49.
Use 0 as the next digit of our solution. 
Result so far: 10.0
The remainder is 49 after subtracting 0 from 49.
Grab the next digit (5) from the dividend, add it to 49, then carry on: 495 / 54

Advancing to step 4:
The number 54 fits into 495 9 times, leaving a remainder of 9.
The next digit of our result is 9. 
Result so far: 109.0
Deduct 486 from 495 and we're left with 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 54

Moving on to step 5:
54 goes into 96 1 times with a remainder of 42.
Record the quotient 1 as the next digit in the result. 
Result so far: 1091.0
Subtract 54 from 96 to get 42.
Bring next digit (1) of the dividend behind the 42 and repeat the process: 421 / 54

Going ahead to step 6:
If we divide 421 by 54, we get 7 and a remainder of 43.
Record the quotient 7 as the next digit in the result. 
Result so far: 10917.0
Subtract 378 from 421 to get 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

On to step 7:
430 divided by 54 is 7 with a remainder of 52.
Record the quotient 7 as the next digit in the result. 
Result so far: 10917.7
Deduct 378 from 430 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.

Step 8:
520 divided by 54 is 9 with a remainder of 34.
Use 9 as the next digit of our solution. 
Result so far: 10917.79
If we take 486 away from 520, we end up 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.

On to step 9:
340 divided by 54 is 6 with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 10917.796
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.

On to step 10:
The number 54 fits into 160 2 times, leaving a remainder of 52.
Use 2 as the next digit of our solution. 
Result so far: 10917.7962
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.

On to step 11:
The number 54 fits into 520 9 times, leaving a remainder of 34.
Use 9 as the next digit of our solution. 
Result so far: 10917.79629
Deduct 486 from 520 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.

Going ahead to step 12:
The number 54 fits into 340 6 times, leaving a remainder of 16.
Record the quotient 6 as the next digit in the result. 
Result so far: 10917.796296
Subtracting 324 from 340 leaves us 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 13:
The number 54 fits into 160 2 times, leaving a remainder of 52.
Use 2 as the next digit of our solution. 
Result so far: 10917.7962962
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.

On to step 14:
The number 54 fits into 520 9 times, leaving a remainder of 34.
Use 9 as the next digit of our solution. 
Result so far: 10917.79629629
If we subtract 486 from 520, we 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.

Our division results in 10917.79629629 with a remaining 3.4e-08.