We look at the division of 990942 by 4 
The aim is to understand the frequency of 4 in 990942.

Going ahead to step 1:
The number 4 fits into 9 2 times, leaving a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 8 from 9 to get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 4

Advancing to step 2:
If we divide 19 by 4, we get 4 and a remainder of 3.
The next digit of our result is 4. 
Result so far: 24.0
If we subtract 16 from 19, we get 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 4

Moving on to step 3:
4 can be fit into 30 7 times, resulting in a remainder of 2.
The number 7 becomes the next digit in our result. 
Result so far: 247.0
If we take 28 away from 30, we end up with 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 4

Advancing to step 4:
29 divided by 4 is 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 2477.0
If we subtract 28 from 29, we get 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 4

Moving on to step 5:
4 goes into 14 3 times with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 24773.0
The remainder is 2 after subtracting 12 from 14.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 4

Advancing to step 6:
The number 4 fits into 22 5 times, leaving a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 247735.0
Subtract 20 from 22 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
4 goes into 20 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 247735.5
Subtracting 20 from 20 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
When dividing 0 by 4, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 247735.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
0 divided by 4 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 247735.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 247735.5 and a remainder of 0.0.