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

Advancing to step 1:
4 can be fit into 5 1 times, resulting in a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 4 from 5, we get 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 4

Let's proceed to step 2:
4 goes into 17 4 times with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 14.0
The remainder is 1 after subtracting 16 from 17.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 4

Step 3:
The number 4 fits into 11 2 times, leaving a remainder of 3.
The next digit of our result is 2. 
Result so far: 142.0
Deduct 8 from 11 and we're left with 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 4

Going ahead to step 4:
The number 4 fits into 37 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 1429.0
Deduct 36 from 37 and we're left with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 4

Let's proceed to step 5:
4 can be fit into 18 4 times, resulting in a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 14294.0
The remainder is 2 after subtracting 16 from 18.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 4

On to step 6:
If we divide 27 by 4, we get 6 and a remainder of 3.
Record the quotient 6 as the next digit in the result. 
Result so far: 142946.0
Subtract 24 from 27 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.

Advancing to step 7:
If we divide 30 by 4, we get 7 and a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 142946.7
Subtracting 28 from 30 leaves us 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.

Advancing to step 8:
When dividing 20 by 4, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 142946.75
Deduct 20 from 20 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.

Let's proceed to step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 142946.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.

Going ahead to step 10:
When dividing 0 by 4, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 142946.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.

The final result is 142946.75 with a remainder of 0.0.