3996790 divided by 222 
The aim is to understand the frequency of 222 in 3996790.

On to step 1:
If we divide 3 by 222, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 222

Let's proceed to step 2:
222 goes into 39 0 times with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Grab the next digit (9) from the dividend, add it to 39, then carry on: 399 / 222

Step 3:
399 divided by 222 is 1 with a remainder of 177.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 222 from 399 and we're left with 177.
Grab the next digit (6) from the dividend, add it to 177, then carry on: 1776 / 222

Advancing to step 4:
The number 222 fits into 1776 8 times, leaving a remainder of 0.
The next digit of our result is 8. 
Result so far: 18.0
If we take 1776 away from 1776, we end up with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 222

Let's proceed to step 5:
The number 222 fits into 7 0 times, leaving a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 180.0
If we take 0 away from 7, we end up with 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 222

Moving on to step 6:
When dividing 79 by 222, we get 0 with a remainder of 79.
The next digit of our result is 0. 
Result so far: 1800.0
Deduct 0 from 79 and we're left with 79.
Append the next digit (0) from the dividend to 79 and continue with: 790 / 222

Advancing to step 7:
790 divided by 222 is 3 with a remainder of 124.
Write down 3 as next digit of the result. 
Result so far: 18003.0
Subtract 666 from 790 to get 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Let's proceed to step 8:
1240 divided by 222 is 5 with a remainder of 130.
Use 5 as the next digit of our solution. 
Result so far: 18003.5
Deduct 1110 from 1240 and we're left with 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Let's proceed to step 9:
If we divide 1300 by 222, we get 5 and a remainder of 190.
Write down 5 as next digit of the result. 
Result so far: 18003.55
Deduct 1110 from 1300 and we're left with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

The final result is 18003.55 with a remainder of 0.19.