522697 divided by 39 
The aim is to understand the frequency of 39 in 522697.

On to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 39

Advancing to step 2:
If we divide 52 by 39, we get 1 and a remainder of 13.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 39 from 52, we get 13.
Append the next digit (2) from the dividend to 13 and continue with: 132 / 39

Let's proceed to step 3:
39 can be fit into 132 3 times, resulting in a remainder of 15.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
If we subtract 117 from 132, we get 15.
Grab the next digit (6) from the dividend, add it to 15, then carry on: 156 / 39

Let's proceed to step 4:
If we divide 156 by 39, we get 4 and a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 134.0
The remainder is 0 after subtracting 156 from 156.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 39

Step 5:
39 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 1340.0
Subtracting 0 from 9 leaves us with 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 39

Step 6:
When dividing 97 by 39, we get 2 with a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 13402.0
Subtract 78 from 97 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 7:
When dividing 190 by 39, we get 4 with a remainder of 34.
The number 4 becomes the next digit in our result. 
Result so far: 13402.4
Subtracting 156 from 190 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 8:
340 divided by 39 is 8 with a remainder of 28.
The number 8 becomes the next digit in our result. 
Result so far: 13402.48
If we take 312 away from 340, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 9:
When dividing 280 by 39, we get 7 with a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 13402.487
If we subtract 273 from 280, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 10:
39 goes into 70 1 times with a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 13402.4871
Deduct 39 from 70 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 11:
310 divided by 39 is 7 with a remainder of 37.
The number 7 becomes the next digit in our result. 
Result so far: 13402.48717
If we subtract 273 from 310, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 12:
If we divide 370 by 39, we get 9 and a remainder of 19.
Use 9 as the next digit of our solution. 
Result so far: 13402.487179
Deduct 351 from 370 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 13:
If we divide 190 by 39, we get 4 and a remainder of 34.
Write down 4 as next digit of the result. 
Result so far: 13402.4871794
Deduct 156 from 190 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 14:
340 divided by 39 is 8 with a remainder of 28.
Put 8 as the next digit of the answer. 
Result so far: 13402.48717948
Deduct 312 from 340 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final outcome is 13402.48717948, with a leftover of 2.8e-08.