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

Advancing to step 1:
If we divide 3 by 27, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 27

Going ahead to step 2:
When dividing 36 by 27, we get 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 27 from 36, we get 9.
Bring next digit (5) of the dividend behind the 9 and repeat the process: 95 / 27

On to step 3:
27 goes into 95 3 times with a remainder of 14.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Deduct 81 from 95 and we're left with 14.
Take the next digit (8) from the dividend and append it to 14, then repeat: 148 / 27

Step 4:
148 divided by 27 is 5 with a remainder of 13.
Use 5 as the next digit of our solution. 
Result so far: 135.0
If we subtract 135 from 148, we get 13.
Grab the next digit (9) from the dividend, add it to 13, then carry on: 139 / 27

Moving on to step 5:
27 can be fit into 139 5 times, resulting in a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 1355.0
Deduct 135 from 139 and we're left with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 27

Going ahead to step 6:
27 goes into 47 1 times with a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 13551.0
Deduct 27 from 47 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 7:
200 divided by 27 is 7 with a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 13551.7
If we take 189 away from 200, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 8:
When dividing 110 by 27, we get 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 13551.74
The remainder is 2 after subtracting 108 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 9:
When dividing 20 by 27, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 13551.74
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 10:
27 can be fit into 200 7 times, resulting in a remainder of 11.
The next digit of our result is 7. 
Result so far: 13551.7407
The remainder is 11 after subtracting 189 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 11:
If we divide 110 by 27, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 13551.74074
The remainder is 2 after subtracting 108 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 12:
27 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 13551.74074
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 13:
27 goes into 200 7 times with a remainder of 11.
Use 7 as the next digit of our solution. 
Result so far: 13551.7407407
Deduct 189 from 200 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 14:
27 goes into 110 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 13551.74074074
If we take 108 away from 110, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Our division results in 13551.74074074 with a remaining 2e-09.