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

Let's proceed to step 1:
3 divided by 4 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 4

On to step 2:
4 can be fit into 36 9 times, resulting in a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
Subtracting 36 from 36 leaves us with 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 4

On to step 3:
4 goes into 4 1 times with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 91.0
Deduct 4 from 4 and we're left with 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 4

Going ahead to step 4:
If we divide 9 by 4, we get 2 and a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 912.0
Subtracting 8 from 9 leaves us with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 4

Going ahead to step 5:
18 divided by 4 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 9124.0
Subtract 16 from 18 to get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 4

Going ahead to step 6:
When dividing 28 by 4, we get 7 with a remainder of 0.
The next digit of our result is 7. 
Result so far: 91247.0
If we take 28 away from 28, we end up 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.

Advancing to step 7:
4 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 91247.0
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.

Moving on to step 8:
4 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 91247.0
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.

The final outcome is 91247.0, with a leftover of 0.0.