We divide 501504 by 27
The aim is to understand the frequency of 27 in 501504.

Advancing to step 1:
27 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 27

Moving on to step 2:
If we divide 50 by 27, we get 1 and a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 27 from 50 to get 23.
Take the next digit (1) from the dividend and append it to 23, then repeat: 231 / 27

Step 3:
27 goes into 231 8 times with a remainder of 15.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtract 216 from 231 to get 15.
Fetch the next digit (5) from the dividend, attach it to 15 and continue: 155 / 27

Going ahead to step 4:
When dividing 155 by 27, we get 5 with a remainder of 20.
The next digit of our result is 5. 
Result so far: 185.0
If we take 135 away from 155, we end up with 20.
Append the next digit (0) from the dividend to 20 and continue with: 200 / 27

Step 5:
If we divide 200 by 27, we get 7 and a remainder of 11.
The number 7 becomes the next digit in our result. 
Result so far: 1857.0
If we subtract 189 from 200, we get 11.
Append the next digit (4) from the dividend to 11 and continue with: 114 / 27

Going ahead to step 6:
The number 27 fits into 114 4 times, leaving a remainder of 6.
The next digit of our result is 4. 
Result so far: 18574.0
Deduct 108 from 114 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 7:
The number 27 fits into 60 2 times, leaving a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 18574.2
Subtracting 54 from 60 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
27 can be fit into 60 2 times, resulting in a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 18574.22
Subtract 54 from 60 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final result is 18574.22 with a remainder of 0.006.