We look at the division of 513291 by 39 
The aim is to understand the frequency of 39 in 513291.

Moving on to step 1:
39 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 39

Advancing to step 2:
51 divided by 39 is 1 with a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 39 from 51 and we're left with 12.
Append the next digit (3) from the dividend to 12 and continue with: 123 / 39

Going ahead to step 3:
39 goes into 123 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 13.0
If we subtract 117 from 123, we get 6.
Append the next digit (2) from the dividend to 6 and continue with: 62 / 39

Going ahead to step 4:
39 goes into 62 1 times with a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 131.0
Subtract 39 from 62 to get 23.
Take the next digit (9) from the dividend and append it to 23, then repeat: 239 / 39

Moving on to step 5:
239 divided by 39 is 6 with a remainder of 5.
Put 6 as the next digit of the answer. 
Result so far: 1316.0
Deduct 234 from 239 and we're left with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 39

Going ahead to step 6:
51 divided by 39 is 1 with a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 13161.0
The remainder is 12 after subtracting 39 from 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 7:
If we divide 120 by 39, we get 3 and a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 13161.3
If we take 117 away from 120, we end up 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.

Advancing to step 8:
When dividing 30 by 39, we get 0 with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 13161.3
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 9:
The number 39 fits into 300 7 times, leaving a remainder of 27.
Use 7 as the next digit of our solution. 
Result so far: 13161.307
If we subtract 273 from 300, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 10:
270 divided by 39 is 6 with a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 13161.3076
Subtract 234 from 270 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 11:
360 divided by 39 is 9 with a remainder of 9.
Record the quotient 9 as the next digit in the result. 
Result so far: 13161.30769
Subtracting 351 from 360 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 12:
39 can be fit into 90 2 times, resulting in a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 13161.307692
Deduct 78 from 90 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
39 can be fit into 120 3 times, resulting in a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 13161.3076923
If we take 117 away from 120, we end up 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 14:
If we divide 30 by 39, we get 0 and a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 13161.3076923
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

In conclusion, the division gives 13161.3076923 with a balance of 3e-08.