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

Moving on to step 1:
13 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 13

Going ahead to step 2:
13 goes into 51 3 times with a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 39 from 51, we get 12.
Include the next digit (2) from the dividend after 12, then repeat: 122 / 13

Going ahead to step 3:
When dividing 122 by 13, we get 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 39.0
Subtracting 117 from 122 leaves us with 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 13

On to step 4:
13 goes into 59 4 times with a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 394.0
If we subtract 52 from 59, we get 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 13

Let's proceed to step 5:
The number 13 fits into 78 6 times, leaving a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 3946.0
If we take 78 away from 78, we end up with 0.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 13

Moving on to step 6:
The number 13 fits into 2 0 times, leaving a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 39460.0
Subtracting 0 from 2 leaves us with 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 7:
When dividing 20 by 13, we get 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 39460.1
If we subtract 13 from 20, 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.

Let's proceed to step 8:
13 can be fit into 70 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 39460.15
If we take 65 away from 70, we end up 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.

On to step 9:
When dividing 50 by 13, we get 3 with a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 39460.153
Subtracting 39 from 50 leaves us 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.

Let's proceed to step 10:
110 divided by 13 is 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 39460.1538
The remainder is 6 after subtracting 104 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 11:
13 can be fit into 60 4 times, resulting in a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 39460.15384
Subtracting 52 from 60 leaves us 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:
13 goes into 80 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 39460.153846
Subtracting 78 from 80 leaves us with 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:
13 goes into 20 1 times with a remainder of 7.
The next digit of our result is 1. 
Result so far: 39460.1538461
If we subtract 13 from 20, 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.

On to step 14:
If we divide 70 by 13, we get 5 and a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 39460.15384615
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.

In conclusion, the division gives 39460.15384615 with a balance of 5e-09.