We're dividing 316730 by 13 
The aim is to understand the frequency of 13 in 316730.

Step 1:
When dividing 3 by 13, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 13

Let's proceed to step 2:
13 can be fit into 31 2 times, resulting in a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 5 after subtracting 26 from 31.
Append the next digit (6) from the dividend to 5 and continue with: 56 / 13

Going ahead to step 3:
13 goes into 56 4 times with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 24.0
Subtract 52 from 56 to get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 13

On to step 4:
47 divided by 13 is 3 with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 243.0
The remainder is 8 after subtracting 39 from 47.
Fetch the next digit (3) from the dividend, attach it to 8 and continue: 83 / 13

Moving on to step 5:
13 can be fit into 83 6 times, resulting in a remainder of 5.
The next digit of our result is 6. 
Result so far: 2436.0
Subtract 78 from 83 to get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 13

Step 6:
13 can be fit into 50 3 times, resulting in a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 24363.0
If we take 39 away from 50, we end up 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.

On to step 7:
When dividing 110 by 13, we get 8 with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 24363.8
Deduct 104 from 110 and we're left 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.

On to step 8:
The number 13 fits into 60 4 times, leaving a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 24363.84
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.

Let's proceed to step 9:
The number 13 fits into 80 6 times, leaving a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 24363.846
Subtract 78 from 80 to 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.

Step 10:
20 divided by 13 is 1 with a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 24363.8461
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.

Let's proceed to step 11:
The number 13 fits into 70 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 24363.84615
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 12:
50 divided by 13 is 3 with a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 24363.846153
Subtract 39 from 50 to 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.

Moving on to step 13:
If we divide 110 by 13, we get 8 and a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 24363.8461538
Subtract 104 from 110 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 14:
13 can be fit into 60 4 times, resulting in a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 24363.84615384
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.

After the division, we end up with 24363.84615384 and a remainder of 8e-09.