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

Advancing to step 1:
13 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 13

Advancing to step 2:
13 goes into 13 1 times with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 13 away from 13, we end up with 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 13

On to step 3:
0 divided by 13 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 10.0
If we subtract 0 from 0, we get 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 13

Going ahead to step 4:
13 goes into 2 0 times with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 100.0
The remainder is 2 after subtracting 0 from 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 13

On to step 5:
When dividing 23 by 13, we get 1 with a remainder of 10.
The next digit of our result is 1. 
Result so far: 1001.0
Subtract 13 from 23 to get 10.
Grab the next digit (9) from the dividend, add it to 10, then carry on: 109 / 13

On to step 6:
If we divide 109 by 13, we get 8 and a remainder of 5.
Use 8 as the next digit of our solution. 
Result so far: 10018.0
Subtracting 104 from 109 leaves us 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 7:
The number 13 fits into 50 3 times, leaving a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 10018.3
If we take 39 away from 50, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 8:
110 divided by 13 is 8 with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 10018.38
If we take 104 away from 110, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
When dividing 60 by 13, we get 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 10018.384
If we subtract 52 from 60, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 10:
80 divided by 13 is 6 with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 10018.3846
If we subtract 78 from 80, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 11:
13 can be fit into 20 1 times, resulting in a remainder of 7.
The next digit of our result is 1. 
Result so far: 10018.38461
Subtracting 13 from 20 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 12:
13 goes into 70 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 10018.384615
Subtracting 65 from 70 leaves us 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.

Going ahead to step 13:
When dividing 50 by 13, we get 3 with a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 10018.3846153
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 14:
110 divided by 13 is 8 with a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 10018.38461538
Subtracting 104 from 110 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The quotient of the division is 10018.38461538, and the remainder is 6e-09.