331874 divided by 22 
The aim is to understand the frequency of 22 in 331874.

On 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
Subtract 0 from 3 to get 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 22

Let's proceed to step 2:
If we divide 33 by 22, we get 1 and a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 22 from 33 leaves us with 11.
Grab the next digit (1) from the dividend, add it to 11, then carry on: 111 / 22

Advancing to step 3:
The number 22 fits into 111 5 times, leaving a remainder of 1.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
The remainder is 1 after subtracting 110 from 111.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 22

Advancing to step 4:
22 can be fit into 18 0 times, resulting in a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 150.0
Subtracting 0 from 18 leaves us with 18.
Include the next digit (7) from the dividend after 18, then repeat: 187 / 22

On to step 5:
187 divided by 22 is 8 with a remainder of 11.
The next digit of our result is 8. 
Result so far: 1508.0
Subtract 176 from 187 to get 11.
Take the next digit (4) from the dividend and append it to 11, then repeat: 114 / 22

Going ahead to step 6:
When dividing 114 by 22, we get 5 with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 15085.0
If we subtract 110 from 114, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 7:
22 goes into 40 1 times with a remainder of 18.
The next digit of our result is 1. 
Result so far: 15085.1
If we subtract 22 from 40, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 8:
The number 22 fits into 180 8 times, leaving a remainder of 4.
The next digit of our result is 8. 
Result so far: 15085.18
If we take 176 away from 180, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
22 goes into 40 1 times with a remainder of 18.
The next digit of our result is 1. 
Result so far: 15085.181
Deduct 22 from 40 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 10:
When dividing 180 by 22, we get 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 15085.1818
The remainder is 4 after subtracting 176 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 11:
The number 22 fits into 40 1 times, leaving a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 15085.18181
Subtracting 22 from 40 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 12:
The number 22 fits into 180 8 times, leaving a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 15085.181818
Deduct 176 from 180 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 13:
If we divide 40 by 22, we get 1 and a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 15085.1818181
Deduct 22 from 40 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 14:
The number 22 fits into 180 8 times, leaving a remainder of 4.
The next digit of our result is 8. 
Result so far: 15085.18181818
Subtracting 176 from 180 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 15085.18181818 and a remainder of 4e-09.