We divide 520340 by 13
The aim is to understand the frequency of 13 in 520340.

Going ahead to step 1:
When dividing 5 by 13, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 13

Advancing to step 2:
52 divided by 13 is 4 with a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 0 after subtracting 52 from 52.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 13

On to step 3:
The number 13 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 40.0
If we subtract 0 from 0, we get 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 13

Going ahead to step 4:
13 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 400.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 13

Advancing to step 5:
34 divided by 13 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 4002.0
Subtract 26 from 34 to get 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 13

On to step 6:
When dividing 80 by 13, we get 6 with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 40026.0
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.

Let's proceed to step 7:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 40026.1
Deduct 13 from 20 and we're left 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 8:
The number 13 fits into 70 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 40026.15
If we subtract 65 from 70, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
If we divide 50 by 13, we get 3 and a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 40026.153
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.

Step 10:
13 can be fit into 110 8 times, resulting in a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 40026.1538
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.

Step 11:
The number 13 fits into 60 4 times, leaving a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 40026.15384
Deduct 52 from 60 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
When dividing 80 by 13, we get 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 40026.153846
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.

Advancing to step 13:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 40026.1538461
Subtract 13 from 20 to 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.

Step 14:
13 can be fit into 70 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 40026.15384615
Deduct 65 from 70 and we're left 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.

The final result is 40026.15384615 with a remainder of 5e-09.