We look at the division of 504988 by 27 
The aim is to understand the frequency of 27 in 504988.

Let's proceed to step 1:
27 goes into 5 0 times with 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.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 27

Moving on to step 2:
If we divide 50 by 27, we get 1 and a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 27 from 50 leaves us with 23.
Bring next digit (4) of the dividend behind the 23 and repeat the process: 234 / 27

Let's proceed to step 3:
27 goes into 234 8 times with a remainder of 18.
Put 8 as the next digit of the answer. 
Result so far: 18.0
If we subtract 216 from 234, we get 18.
Bring next digit (9) of the dividend behind the 18 and repeat the process: 189 / 27

Step 4:
27 can be fit into 189 7 times, resulting in a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 187.0
If we take 189 away from 189, we end up with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 27

Advancing to step 5:
If we divide 8 by 27, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 1870.0
The remainder is 8 after subtracting 0 from 8.
Bring next digit (8) of the dividend behind the 8 and repeat the process: 88 / 27

Going ahead to step 6:
27 can be fit into 88 3 times, resulting in a remainder of 7.
The next digit of our result is 3. 
Result so far: 18703.0
If we take 81 away from 88, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
70 divided by 27 is 2 with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 18703.2
Subtracting 54 from 70 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.

Step 8:
When dividing 160 by 27, we get 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 18703.25
The remainder is 25 after subtracting 135 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 9:
The number 27 fits into 250 9 times, leaving a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 18703.259
Subtracting 243 from 250 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 10:
The number 27 fits into 70 2 times, leaving a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 18703.2592
If we subtract 54 from 70, we 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.

On to step 11:
27 goes into 160 5 times with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 18703.25925
If we take 135 away from 160, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 12:
27 can be fit into 250 9 times, resulting in a remainder of 7.
The next digit of our result is 9. 
Result so far: 18703.259259
If we subtract 243 from 250, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 13:
If we divide 70 by 27, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 18703.2592592
Subtract 54 from 70 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 14:
The number 27 fits into 160 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 18703.25925925
Subtract 135 from 160 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

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