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

Moving on to step 1:
If we divide 6 by 4, we get 1 and a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 4 from 6 leaves us with 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 4

Advancing to step 2:
If we divide 24 by 4, we get 6 and a remainder of 0.
The next digit of our result is 6. 
Result so far: 16.0
The remainder is 0 after subtracting 24 from 24.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 4

On to step 3:
The number 4 fits into 2 0 times, leaving a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 160.0
Deduct 0 from 2 and we're left with 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 4

Let's proceed to step 4:
When dividing 29 by 4, we get 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 1607.0
Deduct 28 from 29 and we're left with 1.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 4

Step 5:
14 divided by 4 is 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 16073.0
Subtracting 12 from 14 leaves us with 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 4

Step 6:
4 can be fit into 29 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 160737.0
If we subtract 28 from 29, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
If we divide 10 by 4, we get 2 and a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 160737.2
The remainder is 2 after subtracting 8 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
4 can be fit into 20 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 160737.25
If we take 20 away from 20, 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.

Moving on to step 9:
4 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 160737.25
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.

Let's proceed to step 10:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 160737.25
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 quotient of the division is 160737.25, and the remainder is 0.0.