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

On to step 1:
When dividing 9 by 6, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 6 from 9, we get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 6

On to step 2:
37 divided by 6 is 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Deduct 36 from 37 and we're left with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 6

Advancing to step 3:
6 can be fit into 17 2 times, resulting in a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 162.0
If we subtract 12 from 17, we get 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 6

Let's proceed to step 4:
59 divided by 6 is 9 with a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 1629.0
If we take 54 away from 59, we end up with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 6

Going ahead to step 5:
When dividing 51 by 6, we get 8 with a remainder of 3.
The next digit of our result is 8. 
Result so far: 16298.0
If we subtract 48 from 51, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 6

Step 6:
If we divide 38 by 6, we get 6 and a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 162986.0
If we subtract 36 from 38, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 7:
6 goes into 20 3 times with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 162986.3
Deduct 18 from 20 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.

Step 8:
20 divided by 6 is 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 162986.33
If we subtract 18 from 20, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 162986.33 with a remainder of 0.002.