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

Step 1:
27 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 27

On to step 2:
27 can be fit into 58 2 times, resulting in a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 4 after subtracting 54 from 58.
Append the next digit (3) from the dividend to 4 and continue with: 43 / 27

Going ahead to step 3:
27 can be fit into 43 1 times, resulting in a remainder of 16.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
If we take 27 away from 43, we end up with 16.
Take the next digit (1) from the dividend and append it to 16, then repeat: 161 / 27

On to step 4:
The number 27 fits into 161 5 times, leaving a remainder of 26.
The next digit of our result is 5. 
Result so far: 215.0
Deduct 135 from 161 and we're left with 26.
Append the next digit (7) from the dividend to 26 and continue with: 267 / 27

Going ahead to step 5:
The number 27 fits into 267 9 times, leaving a remainder of 24.
Use 9 as the next digit of our solution. 
Result so far: 2159.0
Deduct 243 from 267 and we're left with 24.
Grab the next digit (2) from the dividend, add it to 24, then carry on: 242 / 27

On to step 6:
The number 27 fits into 242 8 times, leaving a remainder of 26.
Use 8 as the next digit of our solution. 
Result so far: 21598.0
Subtracting 216 from 242 leaves us 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.

Step 7:
When dividing 260 by 27, we get 9 with a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 21598.9
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.

Let's proceed to step 8:
When dividing 170 by 27, we get 6 with a remainder of 8.
The next digit of our result is 6. 
Result so far: 21598.96
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.

Advancing to step 9:
The number 27 fits into 80 2 times, leaving a remainder of 26.
The next digit of our result is 2. 
Result so far: 21598.962
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.

On to step 10:
The number 27 fits into 260 9 times, leaving a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 21598.9629
Subtracting 243 from 260 leaves us 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.

On to step 11:
27 can be fit into 170 6 times, resulting in a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 21598.96296
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.

Step 12:
27 can be fit into 80 2 times, resulting in a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 21598.962962
If we subtract 54 from 80, we get 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 13:
If we divide 260 by 27, we get 9 and a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 21598.9629629
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.

Advancing to step 14:
When dividing 170 by 27, we get 6 with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 21598.96296296
Deduct 162 from 170 and we're left 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.

In conclusion, the division gives 21598.96296296 with a balance of 8e-09.