We look at the division of 511491 by 6 
The aim is to understand the frequency of 6 in 511491.

Step 1:
The number 6 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 6

Moving on to step 2:
6 goes into 51 8 times with a remainder of 3.
Put 8 as the next digit of the answer. 
Result so far: 8.0
The remainder is 3 after subtracting 48 from 51.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 6

On to step 3:
31 divided by 6 is 5 with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 85.0
Subtracting 30 from 31 leaves us with 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 6

Step 4:
If we divide 14 by 6, we get 2 and a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 852.0
Subtract 12 from 14 to get 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 6

Let's proceed to step 5:
The number 6 fits into 29 4 times, leaving a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 8524.0
Subtract 24 from 29 to get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 6

Step 6:
The number 6 fits into 51 8 times, leaving a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 85248.0
If we take 48 away from 51, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
30 divided by 6 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 85248.5
Deduct 30 from 30 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.

Step 8:
6 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 85248.5
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.

Moving on to step 9:
0 divided by 6 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 85248.5
If we take 0 away from 0, 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.

Our division results in 85248.5 with a remaining 0.0.