We look at the division of 506727 by 13 
The aim is to understand the frequency of 13 in 506727.

Advancing to step 1:
13 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 13

On to step 2:
When dividing 50 by 13, we get 3 with a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 39 from 50, we get 11.
Fetch the next digit (6) from the dividend, attach it to 11 and continue: 116 / 13

Step 3:
116 divided by 13 is 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 38.0
Deduct 104 from 116 and we're left with 12.
Bring next digit (7) of the dividend behind the 12 and repeat the process: 127 / 13

Moving on to step 4:
13 can be fit into 127 9 times, resulting in a remainder of 10.
The number 9 becomes the next digit in our result. 
Result so far: 389.0
The remainder is 10 after subtracting 117 from 127.
Fetch the next digit (2) from the dividend, attach it to 10 and continue: 102 / 13

Moving on to step 5:
13 goes into 102 7 times with a remainder of 11.
Write down 7 as next digit of the result. 
Result so far: 3897.0
Subtracting 91 from 102 leaves us with 11.
Include the next digit (7) from the dividend after 11, then repeat: 117 / 13

On to step 6:
13 can be fit into 117 9 times, resulting in a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 38979.0
Subtracting 117 from 117 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.

Let's proceed to step 7:
13 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 38979.0
If we take 0 away from 0, we end up 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:
13 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: 38979.0
Deduct 0 from 0 and we're left 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.

In conclusion, the division gives 38979.0 with a balance of 0.0.