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

Going ahead 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
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 27

On to step 2:
27 can be fit into 34 1 times, resulting in a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 27 from 34 and we're left with 7.
Include the next digit (0) from the dividend after 7, then repeat: 70 / 27

Moving on to step 3:
The number 27 fits into 70 2 times, leaving a remainder of 16.
The next digit of our result is 2. 
Result so far: 12.0
Subtracting 54 from 70 leaves us with 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 27

On to step 4:
27 goes into 165 6 times with a remainder of 3.
Write down 6 as next digit of the result. 
Result so far: 126.0
Subtract 162 from 165 to get 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 27

Advancing to step 5:
27 can be fit into 38 1 times, resulting in a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 1261.0
Deduct 27 from 38 and we're left with 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 27

On to step 6:
27 can be fit into 111 4 times, resulting in a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 12614.0
Deduct 108 from 111 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
27 goes into 30 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 12614.1
Subtracting 27 from 30 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
The number 27 fits into 30 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 12614.11
If we subtract 27 from 30, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final result is 12614.11 with a remainder of 0.003.