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

Advancing to step 1:
1 divided by 13 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 13

Advancing to step 2:
17 divided by 13 is 1 with a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 13 away from 17, we end up with 4.
Grab the next digit (1) from the dividend, add it to 4, then carry on: 41 / 13

Moving on to step 3:
13 goes into 41 3 times with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 13.0
Subtracting 39 from 41 leaves us with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 13

Advancing to step 4:
22 divided by 13 is 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 131.0
Subtracting 13 from 22 leaves us with 9.
Include the next digit (4) from the dividend after 9, then repeat: 94 / 13

On to step 5:
When dividing 94 by 13, we get 7 with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 1317.0
If we subtract 91 from 94, we get 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 13

Step 6:
36 divided by 13 is 2 with a remainder of 10.
Use 2 as the next digit of our solution. 
Result so far: 13172.0
If we subtract 26 from 36, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 7:
If we divide 100 by 13, we get 7 and a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 13172.7
If we subtract 91 from 100, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 8:
If we divide 90 by 13, we get 6 and a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 13172.76
The remainder is 12 after subtracting 78 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 9:
If we divide 120 by 13, we get 9 and a remainder of 3.
Put 9 as the next digit of the answer. 
Result so far: 13172.769
If we subtract 117 from 120, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 10:
If we divide 30 by 13, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 13172.7692
If we take 26 away from 30, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 11:
40 divided by 13 is 3 with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 13172.76923
Deduct 39 from 40 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 12:
The number 13 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 13172.76923
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 13:
13 goes into 100 7 times with a remainder of 9.
The next digit of our result is 7. 
Result so far: 13172.7692307
If we subtract 91 from 100, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 14:
13 goes into 90 6 times with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 13172.76923076
If we take 78 away from 90, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

After the division, we end up with 13172.76923076 and a remainder of 1.2e-08.