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

Going ahead to step 1:
If we divide 5 by 39, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 39

On to step 2:
If we divide 59 by 39, we get 1 and a remainder of 20.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 39 from 59 and we're left with 20.
Bring next digit (0) of the dividend behind the 20 and repeat the process: 200 / 39

Step 3:
39 goes into 200 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 15.0
Deduct 195 from 200 and we're left with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 39

Going ahead to step 4:
When dividing 51 by 39, we get 1 with a remainder of 12.
The next digit of our result is 1. 
Result so far: 151.0
Subtract 39 from 51 to get 12.
Grab the next digit (6) from the dividend, add it to 12, then carry on: 126 / 39

On to step 5:
39 goes into 126 3 times with a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 1513.0
Deduct 117 from 126 and we're left 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 6:
39 can be fit into 90 2 times, resulting in a remainder of 12.
Record the quotient 2 as the next digit in the result. 
Result so far: 1513.2
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.

Going ahead to step 7:
39 goes into 120 3 times with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 1513.23
Subtracting 117 from 120 leaves us 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.

Step 8:
39 goes into 30 0 times with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 1513.23
Deduct 0 from 30 and we're left with 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.
The next digit of our result is 7. 
Result so far: 1513.2307
Subtract 273 from 300 to 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.

Advancing to step 10:
The number 39 fits into 270 6 times, leaving a remainder of 36.
Write down 6 as next digit of the result. 
Result so far: 1513.23076
If we take 234 away from 270, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 11:
39 can be fit into 360 9 times, resulting in a remainder of 9.
Put 9 as the next digit of the answer. 
Result so far: 1513.230769
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.

Moving on to step 12:
39 goes into 90 2 times with a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 1513.2307692
Subtracting 78 from 90 leaves us 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.

Step 13:
39 can be fit into 120 3 times, resulting in a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 1513.23076923
The remainder is 3 after subtracting 117 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final outcome is 1513.23076923, with a leftover of 3e-09.