We're dividing 40287290 by 22 
The aim is to understand the frequency of 22 in 40287290.

Going ahead to step 1:
The number 22 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 22

Moving on to step 2:
The number 22 fits into 40 1 times, leaving a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 22 away from 40, we end up with 18.
Bring next digit (2) of the dividend behind the 18 and repeat the process: 182 / 22

Step 3:
22 can be fit into 182 8 times, resulting in a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
If we take 176 away from 182, we end up with 6.
Bring next digit (8) of the dividend behind the 6 and repeat the process: 68 / 22

Step 4:
22 goes into 68 3 times with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 183.0
If we take 66 away from 68, we end up with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 22

Step 5:
22 can be fit into 27 1 times, resulting in a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 1831.0
Subtracting 22 from 27 leaves us with 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 22

Advancing to step 6:
When dividing 52 by 22, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 18312.0
The remainder is 8 after subtracting 44 from 52.
Take the next digit (9) from the dividend and append it to 8, then repeat: 89 / 22

Step 7:
22 can be fit into 89 4 times, resulting in a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 183124.0
If we subtract 88 from 89, we get 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 22

Advancing to step 8:
The number 22 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 1831240.0
If we subtract 0 from 10, 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.

Advancing to step 9:
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: 1831240.4
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.

Step 10:
22 goes into 120 5 times with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 1831240.45
Subtracting 110 from 120 leaves us 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 11:
The number 22 fits into 100 4 times, leaving a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 1831240.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.

Step 12:
120 divided by 22 is 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 1831240.4545
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 13:
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: 1831240.45454
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.

On to step 14:
When dividing 120 by 22, we get 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 1831240.454545
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.

Step 15:
When dividing 100 by 22, we get 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 1831240.4545454
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.

On to step 16:
If we divide 120 by 22, we get 5 and a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 1831240.45454545
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.

The final result is 1831240.45454545 with a remainder of 1e-08.