We're dividing 511491 by 4 
The aim is to understand the frequency of 4 in 511491.

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

Let's proceed to step 2:
11 divided by 4 is 2 with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 12.0
If we subtract 8 from 11, we get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 4

On to step 3:
The number 4 fits into 31 7 times, leaving a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 127.0
Subtracting 28 from 31 leaves us with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 4

Let's proceed to step 4:
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: 1278.0
The remainder is 2 after subtracting 32 from 34.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 4

Moving on to step 5:
4 can be fit into 29 7 times, resulting in a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 12787.0
Subtract 28 from 29 to get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 4

Advancing to step 6:
When dividing 11 by 4, we get 2 with a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 127872.0
The remainder is 3 after subtracting 8 from 11.
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.
Use 7 as the next digit of our solution. 
Result so far: 127872.7
Deduct 28 from 30 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 8:
If we divide 20 by 4, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 127872.75
If we subtract 20 from 20, 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 9:
When dividing 0 by 4, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 127872.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:
4 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 127872.75
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.

The final result is 127872.75 with a remainder of 0.0.