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

On to step 1:
22 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 22

Let's proceed to step 2:
When dividing 50 by 22, we get 2 with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 44 from 50, we get 6.
Include the next digit (2) from the dividend after 6, then repeat: 62 / 22

Advancing to step 3:
62 divided by 22 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
If we subtract 44 from 62, we get 18.
Grab the next digit (5) from the dividend, add it to 18, then carry on: 185 / 22

Advancing to step 4:
If we divide 185 by 22, we get 8 and a remainder of 9.
Write down 8 as next digit of the result. 
Result so far: 228.0
Subtract 176 from 185 to get 9.
Fetch the next digit (3) from the dividend, attach it to 9 and continue: 93 / 22

Moving on to step 5:
The number 22 fits into 93 4 times, leaving a remainder of 5.
Write down 4 as next digit of the result. 
Result so far: 2284.0
Subtract 88 from 93 to get 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 22

Moving on to step 6:
56 divided by 22 is 2 with a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 22842.0
Deduct 44 from 56 and we're left 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:
If we divide 120 by 22, we get 5 and a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 22842.5
Deduct 110 from 120 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.

Step 8:
The number 22 fits into 100 4 times, leaving a remainder of 12.
The next digit of our result is 4. 
Result so far: 22842.54
Subtracting 88 from 100 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.

Advancing to step 9:
The number 22 fits into 120 5 times, leaving a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 22842.545
Subtract 110 from 120 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 10:
100 divided by 22 is 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 22842.5454
Subtract 88 from 100 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 11:
120 divided by 22 is 5 with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 22842.54545
If we take 110 away from 120, we end up 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.

Advancing to step 12:
If we divide 100 by 22, we get 4 and a remainder of 12.
The next digit of our result is 4. 
Result so far: 22842.545454
Subtract 88 from 100 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 13:
22 can be fit into 120 5 times, resulting in a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 22842.5454545
Deduct 110 from 120 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.

Going ahead to step 14:
If we divide 100 by 22, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 22842.54545454
If we subtract 88 from 100, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

After the division, we end up with 22842.54545454 and a remainder of 1.2e-08.