321164 ÷ 13 
The aim is to understand the frequency of 13 in 321164.

Step 1:
3 divided by 13 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 13

On to step 2:
The number 13 fits into 32 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 26 from 32 leaves us with 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 13

Let's proceed to step 3:
The number 13 fits into 61 4 times, leaving a remainder of 9.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
Subtract 52 from 61 to get 9.
Grab the next digit (1) from the dividend, add it to 9, then carry on: 91 / 13

Advancing to step 4:
When dividing 91 by 13, we get 7 with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 247.0
Subtract 91 from 91 to get 0.
Take the next digit (6) from the dividend and append it to 0, then repeat: 6 / 13

On to step 5:
13 goes into 6 0 times with a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 2470.0
Deduct 0 from 6 and we're left with 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 13

On to step 6:
13 goes into 64 4 times with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 24704.0
If we take 52 away from 64, 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.

On to step 7:
120 divided by 13 is 9 with a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 24704.9
Deduct 117 from 120 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
13 goes into 30 2 times with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 24704.92
Subtract 26 from 30 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 9:
13 goes into 40 3 times with a remainder of 1.
The next digit of our result is 3. 
Result so far: 24704.923
If we subtract 39 from 40, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 10:
10 divided by 13 is 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 24704.923
Subtracting 0 from 10 leaves us 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 11:
13 can be fit into 100 7 times, resulting in a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 24704.92307
Subtract 91 from 100 to 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.

Step 12:
90 divided by 13 is 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 24704.923076
Subtracting 78 from 90 leaves us 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.

Let's proceed to step 13:
13 goes into 120 9 times with a remainder of 3.
Put 9 as the next digit of the answer. 
Result so far: 24704.9230769
Subtracting 117 from 120 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 14:
The number 13 fits into 30 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 24704.92307692
Subtracting 26 from 30 leaves us 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.

Our division results in 24704.92307692 with a remaining 4e-09.