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

On to step 1:
27 can be fit into 3 0 times, resulting in 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.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 27

Moving on to step 2:
27 goes into 39 1 times with a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 12 after subtracting 27 from 39.
Append the next digit (6) from the dividend to 12 and continue with: 126 / 27

Let's proceed to step 3:
If we divide 126 by 27, we get 4 and a remainder of 18.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Deduct 108 from 126 and we're left with 18.
Fetch the next digit (5) from the dividend, attach it to 18 and continue: 185 / 27

Let's proceed to step 4:
If we divide 185 by 27, we get 6 and a remainder of 23.
Record the quotient 6 as the next digit in the result. 
Result so far: 146.0
The remainder is 23 after subtracting 162 from 185.
Fetch the next digit (9) from the dividend, attach it to 23 and continue: 239 / 27

Moving on to step 5:
239 divided by 27 is 8 with a remainder of 23.
Use 8 as the next digit of our solution. 
Result so far: 1468.0
If we take 216 away from 239, we end up with 23.
Bring next digit (3) of the dividend behind the 23 and repeat the process: 233 / 27

Advancing to step 6:
27 goes into 233 8 times with a remainder of 17.
Record the quotient 8 as the next digit in the result. 
Result so far: 14688.0
Subtract 216 from 233 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 7:
27 can be fit into 170 6 times, resulting in a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 14688.6
If we take 162 away from 170, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
If we divide 80 by 27, we get 2 and a remainder of 26.
Put 2 as the next digit of the answer. 
Result so far: 14688.62
If we take 54 away from 80, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 9:
The number 27 fits into 260 9 times, leaving a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 14688.629
The remainder is 17 after subtracting 243 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 10:
If we divide 170 by 27, we get 6 and a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 14688.6296
If we take 162 away from 170, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 11:
The number 27 fits into 80 2 times, leaving a remainder of 26.
The next digit of our result is 2. 
Result so far: 14688.62962
If we take 54 away from 80, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 12:
27 goes into 260 9 times with a remainder of 17.
The number 9 becomes the next digit in our result. 
Result so far: 14688.629629
Deduct 243 from 260 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 13:
27 can be fit into 170 6 times, resulting in a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 14688.6296296
Subtract 162 from 170 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 14:
27 goes into 80 2 times with a remainder of 26.
Use 2 as the next digit of our solution. 
Result so far: 14688.62962962
If we take 54 away from 80, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

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