Let's divide 498179 by 4
The aim is to understand the frequency of 4 in 498179.

Step 1:
4 divided by 4 is 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 4 from 4 to get 0.
Grab the next digit (9) from the dividend, add it to 0, then carry on: 9 / 4

On to step 2:
If we divide 9 by 4, we get 2 and a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 8 from 9 leaves us with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 4

Moving on to step 3:
The number 4 fits into 18 4 times, leaving a remainder of 2.
The next digit of our result is 4. 
Result so far: 124.0
Deduct 16 from 18 and we're left with 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 4

Moving on to step 4:
When dividing 21 by 4, we get 5 with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 1245.0
Subtract 20 from 21 to get 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 4

On to step 5:
17 divided by 4 is 4 with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 12454.0
Subtract 16 from 17 to get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 4

Let's proceed to step 6:
4 goes into 19 4 times with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 124544.0
If we subtract 16 from 19, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
4 can be fit into 30 7 times, resulting in a remainder of 2.
The next digit of our result is 7. 
Result so far: 124544.7
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
20 divided by 4 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 124544.75
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.

Going ahead to step 9:
When dividing 0 by 4, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 124544.75
Deduct 0 from 0 and we're left 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.

Moving on to step 10:
When dividing 0 by 4, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 124544.75
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.

The final result is 124544.75 with a remainder of 0.0.