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

Moving on to step 1:
21 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 21

On to step 2:
52 divided by 21 is 2 with a remainder of 10.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 42 from 52 to get 10.
Grab the next digit (2) from the dividend, add it to 10, then carry on: 102 / 21

On to step 3:
21 goes into 102 4 times with a remainder of 18.
Put 4 as the next digit of the answer. 
Result so far: 24.0
Subtracting 84 from 102 leaves us with 18.
Take the next digit (2) from the dividend and append it to 18, then repeat: 182 / 21

Advancing to step 4:
When dividing 182 by 21, we get 8 with a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 248.0
Subtracting 168 from 182 leaves us with 14.
Include the next digit (6) from the dividend after 14, then repeat: 146 / 21

Step 5:
When dividing 146 by 21, we get 6 with a remainder of 20.
The next digit of our result is 6. 
Result so far: 2486.0
If we subtract 126 from 146, we get 20.
Take the next digit (2) from the dividend and append it to 20, then repeat: 202 / 21

Advancing to step 6:
21 goes into 202 9 times with a remainder of 13.
Put 9 as the next digit of the answer. 
Result so far: 24869.0
Deduct 189 from 202 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 7:
21 goes into 130 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 24869.6
Subtracting 126 from 130 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.

Advancing to step 8:
When dividing 40 by 21, we get 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 24869.61
If we take 21 away from 40, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 9:
When dividing 190 by 21, we get 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 24869.619
If we subtract 189 from 190, 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:
When dividing 10 by 21, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 24869.619
Deduct 0 from 10 and we're left 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:
The number 21 fits into 100 4 times, leaving a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 24869.61904
The remainder is 16 after subtracting 84 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 12:
The number 21 fits into 160 7 times, leaving a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 24869.619047
The remainder is 13 after subtracting 147 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 13:
21 goes into 130 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 24869.6190476
Subtract 126 from 130 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.

Advancing to step 14:
The number 21 fits into 40 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 24869.61904761
If we subtract 21 from 40, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

The quotient of the division is 24869.61904761, and the remainder is 1.9e-08.