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

On to step 1:
The number 22 fits into 8 0 times, leaving a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 22

Step 2:
If we divide 89 by 22, we get 4 and a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 88 from 89 and we're left with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 22

Going ahead to step 3:
The number 22 fits into 17 0 times, leaving a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 40.0
If we take 0 away from 17, we end up with 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 22

On to step 4:
174 divided by 22 is 7 with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 407.0
Subtract 154 from 174 to get 20.
Bring next digit (1) of the dividend behind the 20 and repeat the process: 201 / 22

Going ahead to step 5:
When dividing 201 by 22, we get 9 with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 4079.0
If we take 198 away from 201, we end up with 3.
Fetch the next digit (2) from the dividend, attach it to 3 and continue: 32 / 22

Step 6:
22 goes into 32 1 times with a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 40791.0
If we take 22 away from 32, 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.

On to step 7:
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: 40791.4
Deduct 88 from 100 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.

Advancing to step 8:
22 can be fit into 120 5 times, resulting in a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 40791.45
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 9:
22 goes into 100 4 times with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 40791.454
Deduct 88 from 100 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.

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

Moving on to step 11:
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: 40791.45454
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.

Advancing to step 12:
The number 22 fits into 120 5 times, leaving a remainder of 10.
The next digit of our result is 5. 
Result so far: 40791.454545
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 13:
When dividing 100 by 22, we get 4 with a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 40791.4545454
Deduct 88 from 100 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.

Moving on to step 14:
The number 22 fits into 120 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 40791.45454545
If we subtract 110 from 120, we 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.

The final outcome is 40791.45454545, with a leftover of 1e-08.