Let's divide 412371 by 13
The aim is to understand the frequency of 13 in 412371.

On to step 1:
13 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (1) from the dividend, attach it to 4 and continue: 41 / 13

Advancing to step 2:
If we divide 41 by 13, we get 3 and a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtracting 39 from 41 leaves us with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 13

Advancing to step 3:
13 goes into 22 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtracting 13 from 22 leaves us with 9.
Fetch the next digit (3) from the dividend, attach it to 9 and continue: 93 / 13

Advancing to step 4:
13 can be fit into 93 7 times, resulting in a remainder of 2.
The number 7 becomes the next digit in our result. 
Result so far: 317.0
Subtracting 91 from 93 leaves us with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 13

Going ahead to step 5:
27 divided by 13 is 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 3172.0
Deduct 26 from 27 and we're left with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 13

Step 6:
The number 13 fits into 11 0 times, leaving a remainder of 11.
Use 0 as the next digit of our solution. 
Result so far: 31720.0
If we take 0 away from 11, 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.

Advancing to step 7:
110 divided by 13 is 8 with a remainder of 6.
The next digit of our result is 8. 
Result so far: 31720.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.

Step 8:
When dividing 60 by 13, we get 4 with a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 31720.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.

Step 9:
When dividing 80 by 13, we get 6 with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 31720.846
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 10:
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: 31720.8461
Subtracting 13 from 20 leaves us 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.

On to step 11:
When dividing 70 by 13, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 31720.84615
The remainder is 5 after subtracting 65 from 70.
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 12:
If we divide 50 by 13, we get 3 and a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 31720.846153
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.

Advancing to step 13:
If we divide 110 by 13, we get 8 and a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 31720.8461538
If we subtract 104 from 110, we 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.

On to step 14:
If we divide 60 by 13, we get 4 and a remainder of 8.
The next digit of our result is 4. 
Result so far: 31720.84615384
If we subtract 52 from 60, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 31720.84615384, with a leftover of 8e-09.