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

Going ahead to step 1:
13 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 13

Let's proceed to step 2:
If we divide 38 by 13, we get 2 and a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 26 away from 38, we end up with 12.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 13

Let's proceed to step 3:
When dividing 127 by 13, we get 9 with a remainder of 10.
Record the quotient 9 as the next digit in the result. 
Result so far: 29.0
Subtract 117 from 127 to get 10.
Bring next digit (9) of the dividend behind the 10 and repeat the process: 109 / 13

Step 4:
If we divide 109 by 13, we get 8 and a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 298.0
If we take 104 away from 109, we end up with 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 13

Let's proceed to step 5:
If we divide 54 by 13, we get 4 and a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 2984.0
If we subtract 52 from 54, we get 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 13

Moving on to step 6:
If we divide 21 by 13, we get 1 and a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 29841.0
If we take 13 away from 21, we end up 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.

Step 7:
If we divide 80 by 13, we get 6 and a remainder of 2.
The next digit of our result is 6. 
Result so far: 29841.6
If we take 78 away from 80, we end up 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.

Let's proceed to step 8:
If we divide 20 by 13, we get 1 and a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 29841.61
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.

Moving on to step 9:
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: 29841.615
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.

Going ahead to step 10:
If we divide 50 by 13, we get 3 and a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 29841.6153
The remainder is 11 after subtracting 39 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 11:
13 can be fit into 110 8 times, resulting in a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 29841.61538
Subtracting 104 from 110 leaves us 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.

Going ahead to step 12:
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: 29841.615384
If we take 52 away from 60, we end up 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.

Moving on to step 13:
The number 13 fits into 80 6 times, leaving a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 29841.6153846
The remainder is 2 after subtracting 78 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 14:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 29841.61538461
If we take 13 away from 20, we end up 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.

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