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

On to step 1:
When dividing 3 by 27, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 27

Moving on to step 2:
If we divide 30 by 27, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 27 from 30, we get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 27

Step 3:
The number 27 fits into 38 1 times, leaving a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
Subtract 27 from 38 to get 11.
Bring next digit (2) of the dividend behind the 11 and repeat the process: 112 / 27

Let's proceed to step 4:
If we divide 112 by 27, we get 4 and a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 114.0
If we subtract 108 from 112, we get 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 27

Moving on to step 5:
27 can be fit into 42 1 times, resulting in a remainder of 15.
The next digit of our result is 1. 
Result so far: 1141.0
If we take 27 away from 42, we end up with 15.
Take the next digit (8) from the dividend and append it to 15, then repeat: 158 / 27

Moving on to step 6:
The number 27 fits into 158 5 times, leaving a remainder of 23.
Record the quotient 5 as the next digit in the result. 
Result so far: 11415.0
The remainder is 23 after subtracting 135 from 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 7:
The number 27 fits into 230 8 times, leaving a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 11415.8
If we take 216 away from 230, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
The number 27 fits into 140 5 times, leaving a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 11415.85
If we take 135 away from 140, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
50 divided by 27 is 1 with a remainder of 23.
The next digit of our result is 1. 
Result so far: 11415.851
If we take 27 away from 50, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 10:
27 can be fit into 230 8 times, resulting in a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 11415.8518
If we take 216 away from 230, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 11:
If we divide 140 by 27, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 11415.85185
Deduct 135 from 140 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 12:
The number 27 fits into 50 1 times, leaving a remainder of 23.
Put 1 as the next digit of the answer. 
Result so far: 11415.851851
The remainder is 23 after subtracting 27 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 13:
If we divide 230 by 27, we get 8 and a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 11415.8518518
If we take 216 away from 230, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 14:
When dividing 140 by 27, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 11415.85185185
The remainder is 5 after subtracting 135 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The final outcome is 11415.85185185, with a leftover of 5e-09.