Let's divide 323180 by 21
The aim is to understand the frequency of 21 in 323180.

Going ahead to step 1:
The number 21 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 21

On to step 2:
The number 21 fits into 32 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 21 from 32 to get 11.
Grab the next digit (3) from the dividend, add it to 11, then carry on: 113 / 21

Going ahead to step 3:
21 can be fit into 113 5 times, resulting in a remainder of 8.
The next digit of our result is 5. 
Result so far: 15.0
Deduct 105 from 113 and we're left with 8.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 21

Advancing to step 4:
The number 21 fits into 81 3 times, leaving a remainder of 18.
Write down 3 as next digit of the result. 
Result so far: 153.0
If we take 63 away from 81, we end up with 18.
Grab the next digit (8) from the dividend, add it to 18, then carry on: 188 / 21

Step 5:
If we divide 188 by 21, we get 8 and a remainder of 20.
Write down 8 as next digit of the result. 
Result so far: 1538.0
Deduct 168 from 188 and we're left with 20.
Take the next digit (0) from the dividend and append it to 20, then repeat: 200 / 21

Going ahead to step 6:
21 goes into 200 9 times with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 15389.0
The remainder is 11 after subtracting 189 from 200.
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:
If we divide 110 by 21, we get 5 and a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 15389.5
The remainder is 5 after subtracting 105 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 8:
When dividing 50 by 21, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 15389.52
Subtracting 42 from 50 leaves us 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:
80 divided by 21 is 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 15389.523
Deduct 63 from 80 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 10:
21 goes into 170 8 times with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 15389.5238
If we take 168 away from 170, 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.

On to step 11:
When dividing 20 by 21, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 15389.5238
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 12:
The number 21 fits into 200 9 times, leaving a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 15389.523809
Deduct 189 from 200 and we're left 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:
110 divided by 21 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 15389.5238095
Subtracting 105 from 110 leaves us 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 14:
If we divide 50 by 21, we get 2 and a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 15389.52380952
Subtract 42 from 50 to 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.

Our division results in 15389.52380952 with a remaining 8e-09.