Let's divide 257318 by 22
The aim is to understand the frequency of 22 in 257318.

On to step 1:
2 divided by 22 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 22

Moving on to step 2:
If we divide 25 by 22, we get 1 and a remainder of 3.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 22 from 25 to get 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 22

Step 3:
If we divide 37 by 22, we get 1 and a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
The remainder is 15 after subtracting 22 from 37.
Grab the next digit (3) from the dividend, add it to 15, then carry on: 153 / 22

On to step 4:
22 goes into 153 6 times with a remainder of 21.
Use 6 as the next digit of our solution. 
Result so far: 116.0
Subtracting 132 from 153 leaves us with 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 22

Let's proceed to step 5:
When dividing 211 by 22, we get 9 with a remainder of 13.
Use 9 as the next digit of our solution. 
Result so far: 1169.0
Subtract 198 from 211 to get 13.
Append the next digit (8) from the dividend to 13 and continue with: 138 / 22

Going ahead to step 6:
If we divide 138 by 22, we get 6 and a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 11696.0
Subtracting 132 from 138 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 7:
The number 22 fits into 60 2 times, leaving a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 11696.2
The remainder is 16 after subtracting 44 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 8:
160 divided by 22 is 7 with a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 11696.27
The remainder is 6 after subtracting 154 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
60 divided by 22 is 2 with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 11696.272
Subtracting 44 from 60 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 10:
22 can be fit into 160 7 times, resulting in a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 11696.2727
Deduct 154 from 160 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 11:
If we divide 60 by 22, we get 2 and a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 11696.27272
Subtracting 44 from 60 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 12:
22 goes into 160 7 times with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 11696.272727
The remainder is 6 after subtracting 154 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 13:
The number 22 fits into 60 2 times, leaving a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 11696.2727272
If we take 44 away from 60, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 14:
If we divide 160 by 22, we get 7 and a remainder of 6.
The next digit of our result is 7. 
Result so far: 11696.27272727
The remainder is 6 after subtracting 154 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final result is 11696.27272727 with a remainder of 6e-09.