We're dividing 397888 by 27 
The aim is to understand the frequency of 27 in 397888.

Step 1:
When dividing 3 by 27, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 27

Advancing to step 2:
The number 27 fits into 39 1 times, leaving a remainder of 12.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 27 away from 39, we end up with 12.
Fetch the next digit (7) from the dividend, attach it to 12 and continue: 127 / 27

Going ahead to step 3:
If we divide 127 by 27, we get 4 and a remainder of 19.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
If we take 108 away from 127, we end up with 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 27

On to step 4:
When dividing 198 by 27, we get 7 with a remainder of 9.
The next digit of our result is 7. 
Result so far: 147.0
If we subtract 189 from 198, we get 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 27

Step 5:
27 can be fit into 98 3 times, resulting in a remainder of 17.
The next digit of our result is 3. 
Result so far: 1473.0
Subtract 81 from 98 to get 17.
Append the next digit (8) from the dividend to 17 and continue with: 178 / 27

Moving on to step 6:
27 goes into 178 6 times with a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 14736.0
Subtracting 162 from 178 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 7:
160 divided by 27 is 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 14736.5
Deduct 135 from 160 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
When dividing 250 by 27, we get 9 with a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 14736.59
Subtract 243 from 250 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 9:
If we divide 70 by 27, we get 2 and a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 14736.592
If we subtract 54 from 70, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 10:
160 divided by 27 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 14736.5925
Subtracting 135 from 160 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 11:
The number 27 fits into 250 9 times, leaving a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 14736.59259
Deduct 243 from 250 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 12:
27 goes into 70 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 14736.592592
If we subtract 54 from 70, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 13:
160 divided by 27 is 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 14736.5925925
If we subtract 135 from 160, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 14:
27 goes into 250 9 times with a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 14736.59259259
Subtracting 243 from 250 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

After the division, we end up with 14736.59259259 and a remainder of 7e-09.