We divide 506123 by 22
The aim is to understand the frequency of 22 in 506123.

Going ahead to step 1:
When dividing 5 by 22, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 22

Step 2:
When dividing 50 by 22, we get 2 with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 44 from 50, we get 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 22

Advancing to step 3:
22 goes into 66 3 times with a remainder of 0.
Use 3 as the next digit of our solution. 
Result so far: 23.0
Deduct 66 from 66 and we're left with 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 22

Step 4:
If we divide 1 by 22, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 230.0
Deduct 0 from 1 and we're left with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 22

Let's proceed to step 5:
If we divide 12 by 22, we get 0 and a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 2300.0
If we take 0 away from 12, we end up with 12.
Include the next digit (3) from the dividend after 12, then repeat: 123 / 22

On to step 6:
123 divided by 22 is 5 with a remainder of 13.
The next digit of our result is 5. 
Result so far: 23005.0
Subtract 110 from 123 to get 13.
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 7:
The number 22 fits into 130 5 times, leaving a remainder of 20.
Write down 5 as next digit of the result. 
Result so far: 23005.5
Subtracting 110 from 130 leaves us 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 8:
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: 23005.59
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.

Advancing to step 9:
If we divide 20 by 22, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 23005.59
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.

On to step 10:
200 divided by 22 is 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 23005.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:
The number 22 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 23005.5909
The remainder is 20 after subtracting 0 from 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 12:
The number 22 fits into 200 9 times, leaving a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 23005.590909
If we take 198 away from 200, 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.

Let's proceed to step 13:
If we divide 20 by 22, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 23005.590909
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 14:
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: 23005.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.

After the division, we end up with 23005.59090909 and a remainder of 2e-09.