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

Let's proceed to step 1:
3 divided by 22 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 22

Step 2:
22 can be fit into 39 1 times, resulting in a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 22 away from 39, we end up with 17.
Take the next digit (8) from the dividend and append it to 17, then repeat: 178 / 22

On to step 3:
22 goes into 178 8 times with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
If we take 176 away from 178, we end up with 2.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 22

Advancing to step 4:
If we divide 20 by 22, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 180.0
Subtracting 0 from 20 leaves us with 20.
Take the next digit (1) from the dividend and append it to 20, then repeat: 201 / 22

On to step 5:
22 goes into 201 9 times with a remainder of 3.
Use 9 as the next digit of our solution. 
Result so far: 1809.0
If we subtract 198 from 201, we get 3.
Fetch the next digit (2) from the dividend, attach it to 3 and continue: 32 / 22

Advancing to step 6:
If we divide 32 by 22, we get 1 and a remainder of 10.
Write down 1 as next digit of the result. 
Result so far: 18091.0
If we subtract 22 from 32, 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.

Moving on to step 7:
The number 22 fits into 100 4 times, leaving a remainder of 12.
The next digit of our result is 4. 
Result so far: 18091.4
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 8:
120 divided by 22 is 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 18091.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.

On to step 9:
If we divide 100 by 22, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 18091.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:
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: 18091.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.

Going ahead to step 11:
If we divide 100 by 22, we get 4 and a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 18091.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.

Moving on to step 12:
If we divide 120 by 22, we get 5 and a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 18091.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.

On to step 13:
If we divide 100 by 22, we get 4 and a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 18091.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.

Let's proceed to step 14:
22 goes into 120 5 times with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 18091.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 18091.45454545 with a remainder of 1e-08.