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

On to step 1:
22 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 22

Advancing to step 2:
When dividing 16 by 22, we get 0 with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Grab the next digit (5) from the dividend, add it to 16, then carry on: 165 / 22

Advancing to step 3:
22 goes into 165 7 times with a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Subtract 154 from 165 to get 11.
Bring next digit (7) of the dividend behind the 11 and repeat the process: 117 / 22

Going ahead to step 4:
The number 22 fits into 117 5 times, leaving a remainder of 7.
The next digit of our result is 5. 
Result so far: 75.0
The remainder is 7 after subtracting 110 from 117.
Bring next digit (1) of the dividend behind the 7 and repeat the process: 71 / 22

Let's proceed to step 5:
The number 22 fits into 71 3 times, leaving a remainder of 5.
Put 3 as the next digit of the answer. 
Result so far: 753.0
The remainder is 5 after subtracting 66 from 71.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 22

Going ahead to step 6:
58 divided by 22 is 2 with a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 7532.0
Subtracting 44 from 58 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
140 divided by 22 is 6 with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 7532.6
If we subtract 132 from 140, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
80 divided by 22 is 3 with a remainder of 14.
The next digit of our result is 3. 
Result so far: 7532.63
Subtracting 66 from 80 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 9:
The number 22 fits into 140 6 times, leaving a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 7532.636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 10:
The number 22 fits into 80 3 times, leaving a remainder of 14.
Use 3 as the next digit of our solution. 
Result so far: 7532.6363
If we take 66 away from 80, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 11:
22 goes into 140 6 times with a remainder of 8.
The next digit of our result is 6. 
Result so far: 7532.63636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 12:
The number 22 fits into 80 3 times, leaving a remainder of 14.
Write down 3 as next digit of the result. 
Result so far: 7532.636363
Subtracting 66 from 80 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 13:
22 goes into 140 6 times with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 7532.6363636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 14:
22 can be fit into 80 3 times, resulting in a remainder of 14.
The next digit of our result is 3. 
Result so far: 7532.63636363
Subtracting 66 from 80 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Our division results in 7532.63636363 with a remaining 1.4e-08.