We divide 394993 by 4
The aim is to understand the frequency of 4 in 394993.

Going ahead to step 1:
3 divided by 4 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 4

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

Advancing to step 3:
4 goes into 34 8 times with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 98.0
The remainder is 2 after subtracting 32 from 34.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 4

On 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: 987.0
If we subtract 28 from 29, we get 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 4

Advancing to step 5:
4 can be fit into 19 4 times, resulting in a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 9874.0
The remainder is 3 after subtracting 16 from 19.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 4

On to step 6:
4 goes into 33 8 times with a remainder of 1.
The number 8 becomes the next digit in our result. 
Result so far: 98748.0
The remainder is 1 after subtracting 32 from 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
4 goes into 10 2 times with a remainder of 2.
The next digit of our result is 2. 
Result so far: 98748.2
Subtract 8 from 10 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.

Let's proceed to step 8:
4 goes into 20 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 98748.25
Subtract 20 from 20 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.

Let's proceed to step 9:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 98748.25
If we subtract 0 from 0, we 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 10:
4 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 98748.25
If we take 0 away from 0, 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.

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