Let's divide 397427 by 27
The aim is to understand the frequency of 27 in 397427.

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
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 27

Moving on to step 2:
39 divided by 27 is 1 with a remainder of 12.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 27 from 39 to get 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 27

Moving on to step 3:
127 divided by 27 is 4 with a remainder of 19.
Put 4 as the next digit of the answer. 
Result so far: 14.0
If we take 108 away from 127, we end up with 19.
Take the next digit (4) from the dividend and append it to 19, then repeat: 194 / 27

Moving on to step 4:
27 goes into 194 7 times with a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 147.0
If we subtract 189 from 194, we get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 27

Going ahead to step 5:
27 goes into 52 1 times with a remainder of 25.
The next digit of our result is 1. 
Result so far: 1471.0
The remainder is 25 after subtracting 27 from 52.
Append the next digit (7) from the dividend to 25 and continue with: 257 / 27

Advancing to step 6:
When dividing 257 by 27, we get 9 with a remainder of 14.
The number 9 becomes the next digit in our result. 
Result so far: 14719.0
Deduct 243 from 257 and we're left 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.

Step 7:
27 can be fit into 140 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 14719.5
Subtracting 135 from 140 leaves us 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 8:
The number 27 fits into 50 1 times, leaving a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 14719.51
If we subtract 27 from 50, we get 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 9:
27 goes into 230 8 times with a remainder of 14.
The next digit of our result is 8. 
Result so far: 14719.518
The remainder is 14 after subtracting 216 from 230.
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 10:
The number 27 fits into 140 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 14719.5185
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.

Step 11:
If we divide 50 by 27, we get 1 and a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 14719.51851
Subtracting 27 from 50 leaves us 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.

Step 12:
The number 27 fits into 230 8 times, leaving a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 14719.518518
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.

Going ahead to step 13:
If we divide 140 by 27, we get 5 and a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 14719.5185185
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.

Moving on to step 14:
When dividing 50 by 27, we get 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 14719.51851851
Subtract 27 from 50 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The final result is 14719.51851851 with a remainder of 2.3e-08.