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

On 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.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 4

On to step 2:
4 goes into 18 4 times with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 24.0
Deduct 16 from 18 and we're left with 2.
Fetch the next digit (5) from the dividend, attach it to 2 and continue: 25 / 4

Going ahead to step 3:
The number 4 fits into 25 6 times, leaving a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 246.0
Subtracting 24 from 25 leaves us with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 4

Advancing to step 4:
16 divided by 4 is 4 with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 2464.0
Subtract 16 from 16 to get 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 4

Going ahead to step 5:
The number 4 fits into 5 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 24641.0
The remainder is 1 after subtracting 4 from 5.
Include the next digit (9) from the dividend after 1, then repeat: 19 / 4

Let's proceed to step 6:
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: 246414.0
Subtract 16 from 19 to 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.

Step 7:
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: 246414.7
Subtract 28 from 30 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.

Moving on to step 8:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 246414.75
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.

Advancing to step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 246414.75
Subtracting 0 from 0 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.

Moving on to step 10:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 246414.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 quotient of the division is 246414.75, and the remainder is 0.0.