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

Going ahead to step 1:
If we divide 3 by 27, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 27

On to step 2:
If we divide 31 by 27, we get 1 and a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 27 from 31 and we're left with 4.
Bring next digit (1) of the dividend behind the 4 and repeat the process: 41 / 27

Step 3:
41 divided by 27 is 1 with a remainder of 14.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 14 after subtracting 27 from 41.
Append the next digit (9) from the dividend to 14 and continue with: 149 / 27

Moving on to step 4:
When dividing 149 by 27, we get 5 with a remainder of 14.
Put 5 as the next digit of the answer. 
Result so far: 115.0
Subtracting 135 from 149 leaves us with 14.
Fetch the next digit (8) from the dividend, attach it to 14 and continue: 148 / 27

On to step 5:
27 can be fit into 148 5 times, resulting in a remainder of 13.
Record the quotient 5 as the next digit in the result. 
Result so far: 1155.0
If we subtract 135 from 148, we get 13.
Append the next digit (1) from the dividend to 13 and continue with: 131 / 27

Let's proceed to step 6:
27 goes into 131 4 times with a remainder of 23.
The next digit of our result is 4. 
Result so far: 11554.0
If we take 108 away from 131, 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.

Advancing to step 7:
27 goes into 230 8 times with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 11554.8
Deduct 216 from 230 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.

Going ahead to step 8:
27 can be fit into 140 5 times, resulting in a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 11554.85
Subtract 135 from 140 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 9:
When dividing 50 by 27, we get 1 with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 11554.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.

Step 10:
27 goes into 230 8 times with a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 11554.8518
Subtract 216 from 230 to get 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 11:
27 goes into 140 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 11554.85185
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 12:
27 can be fit into 50 1 times, resulting in a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 11554.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.

Moving on to step 13:
If we divide 230 by 27, we get 8 and a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 11554.8518518
Subtract 216 from 230 to get 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 14:
27 can be fit into 140 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 11554.85185185
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.

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