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

Moving on to step 1:
If we divide 5 by 4, we get 1 and a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 4 from 5 leaves us with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 4

Going ahead to step 2:
If we divide 10 by 4, we get 2 and a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtract 8 from 10 to get 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 4

Advancing to step 3:
21 divided by 4 is 5 with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 125.0
Subtract 20 from 21 to get 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 4

Let's proceed to step 4:
When dividing 17 by 4, we get 4 with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 1254.0
Subtract 16 from 17 to get 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 4

On to step 5:
4 can be fit into 11 2 times, resulting in a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 12542.0
If we take 8 away from 11, we end up with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 4

Let's proceed to step 6:
34 divided by 4 is 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 125428.0
Deduct 32 from 34 and we're left with 2.
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 7:
4 goes into 20 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 125428.5
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 8:
If we divide 0 by 4, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 125428.5
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.

Let's proceed to step 9:
4 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 125428.5
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.

Our division results in 125428.5 with a remaining 0.0.