We look at the division of 512217 by 22 
The aim is to understand the frequency of 22 in 512217.

Going ahead to step 1:
5 divided by 22 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 22

Moving on to step 2:
22 can be fit into 51 2 times, resulting in a remainder of 7.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 44 away from 51, we end up with 7.
Bring next digit (2) of the dividend behind the 7 and repeat the process: 72 / 22

Moving on to step 3:
72 divided by 22 is 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 23.0
The remainder is 6 after subtracting 66 from 72.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 22

Going ahead to step 4:
22 goes into 62 2 times with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 232.0
The remainder is 18 after subtracting 44 from 62.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 22

On to step 5:
22 can be fit into 181 8 times, resulting in a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 2328.0
Subtracting 176 from 181 leaves us with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 22

Moving on to step 6:
The number 22 fits into 57 2 times, leaving a remainder of 13.
The next digit of our result is 2. 
Result so far: 23282.0
If we take 44 away from 57, we end up 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.

Going ahead to step 7:
22 goes into 130 5 times with a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 23282.5
Deduct 110 from 130 and we're left 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.

Advancing to step 8:
When dividing 200 by 22, we get 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 23282.59
The remainder is 2 after subtracting 198 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
If we divide 20 by 22, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 23282.59
Deduct 0 from 20 and we're left 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 10:
22 can be fit into 200 9 times, resulting in a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 23282.5909
If we subtract 198 from 200, 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.

Moving on to step 11:
22 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 23282.5909
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 12:
When dividing 200 by 22, we get 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 23282.590909
Subtracting 198 from 200 leaves us 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 13:
20 divided by 22 is 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 23282.590909
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.

On to step 14:
If we divide 200 by 22, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 23282.59090909
Deduct 198 from 200 and we're left 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.

In conclusion, the division gives 23282.59090909 with a balance of 2e-09.