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

Going ahead to step 1:
4 goes into 6 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 4 from 6, we get 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 4

Moving on to step 2:
4 goes into 22 5 times with a remainder of 2.
The next digit of our result is 5. 
Result so far: 15.0
Subtract 20 from 22 to get 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 4

On to step 3:
4 can be fit into 28 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 157.0
Subtracting 28 from 28 leaves us with 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 4

Step 4:
4 can be fit into 2 0 times, resulting in a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 1570.0
Deduct 0 from 2 and we're left with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 4

Going ahead to step 5:
4 goes into 21 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 15705.0
If we take 20 away from 21, we end up with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 4

On to step 6:
When dividing 17 by 4, we get 4 with a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 157054.0
Deduct 16 from 17 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
4 goes into 10 2 times with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 157054.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:
When dividing 20 by 4, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 157054.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.

On to step 9:
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: 157054.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.

Going ahead to step 10:
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: 157054.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.

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