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

On to step 1:
When dividing 8 by 22, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 22

Step 2:
22 can be fit into 84 3 times, resulting in a remainder of 18.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 66 from 84 to get 18.
Grab the next digit (2) from the dividend, add it to 18, then carry on: 182 / 22

Step 3:
When dividing 182 by 22, we get 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 38.0
The remainder is 6 after subtracting 176 from 182.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 22

Advancing to step 4:
65 divided by 22 is 2 with a remainder of 21.
Record the quotient 2 as the next digit in the result. 
Result so far: 382.0
The remainder is 21 after subtracting 44 from 65.
Bring next digit (3) of the dividend behind the 21 and repeat the process: 213 / 22

Moving on to step 5:
The number 22 fits into 213 9 times, leaving a remainder of 15.
Write down 9 as next digit of the result. 
Result so far: 3829.0
The remainder is 15 after subtracting 198 from 213.
Include the next digit (5) from the dividend after 15, then repeat: 155 / 22

On to step 6:
22 goes into 155 7 times with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 38297.0
Deduct 154 from 155 and we're left with 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 7:
The number 22 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 38297.0
The remainder is 10 after subtracting 0 from 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 8:
22 goes into 100 4 times with a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 38297.04
The remainder is 12 after subtracting 88 from 100.
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 9:
120 divided by 22 is 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 38297.045
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 10:
The number 22 fits into 100 4 times, leaving a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 38297.0454
If we take 88 away from 100, we end up 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.

Going ahead to step 11:
When dividing 120 by 22, we get 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 38297.04545
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.

On to step 12:
If we divide 100 by 22, we get 4 and a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 38297.045454
If we take 88 away from 100, we end up 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.

Going ahead to step 13:
22 goes into 120 5 times with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 38297.0454545
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.

Advancing to step 14:
When dividing 100 by 22, we get 4 with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 38297.04545454
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.

The quotient of the division is 38297.04545454, and the remainder is 1.2e-08.