We look at the division of 511072 by 3 
The aim is to understand the frequency of 3 in 511072.

Let's proceed to step 1:
The number 3 fits into 5 1 times, leaving a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 3 from 5 to get 2.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 3

Going ahead to step 2:
If we divide 21 by 3, we get 7 and a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 17.0
Subtracting 21 from 21 leaves us with 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 3

Advancing to step 3:
The number 3 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 170.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 3

On to step 4:
When dividing 10 by 3, we get 3 with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 1703.0
If we subtract 9 from 10, we get 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 3

Let's proceed to step 5:
3 goes into 17 5 times with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 17035.0
Subtract 15 from 17 to get 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 3

Moving on to step 6:
When dividing 22 by 3, we get 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 170357.0
Deduct 21 from 22 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.

Advancing to step 7:
If we divide 10 by 3, we get 3 and a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 170357.3
If we take 9 away from 10, we end up 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.

On to step 8:
3 can be fit into 10 3 times, resulting in a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 170357.33
Subtracting 9 from 10 leaves us 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.

Our division results in 170357.33 with a remaining 0.001.