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

Going ahead to step 1:
The number 27 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 27

Step 2:
The number 27 fits into 59 2 times, leaving a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 54 from 59 and we're left with 5.
Take the next digit (6) from the dividend and append it to 5, then repeat: 56 / 27

Step 3:
56 divided by 27 is 2 with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 22.0
If we subtract 54 from 56, we get 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 27

Going ahead to step 4:
When dividing 29 by 27, we get 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 221.0
Subtracting 27 from 29 leaves us with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 27

Advancing to step 5:
The number 27 fits into 29 1 times, leaving a remainder of 2.
The next digit of our result is 1. 
Result so far: 2211.0
Subtract 27 from 29 to get 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 27

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

Let's proceed to step 7:
If we divide 0 by 27, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 22111.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
27 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22111.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 22111.0 with a remainder of 0.0.