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

Going ahead to step 1:
When dividing 6 by 6, we get 1 with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 6 from 6, we get 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 6

Going ahead to step 2:
1 divided by 6 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 6

On to step 3:
If we divide 17 by 6, we get 2 and a remainder of 5.
The next digit of our result is 2. 
Result so far: 102.0
Subtracting 12 from 17 leaves us with 5.
Append the next digit (3) from the dividend to 5 and continue with: 53 / 6

On to step 4:
6 goes into 53 8 times with a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 1028.0
Subtract 48 from 53 to get 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 6

Step 5:
6 goes into 51 8 times with a remainder of 3.
The next digit of our result is 8. 
Result so far: 10288.0
If we take 48 away from 51, we end up with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 6

Let's proceed to step 6:
6 can be fit into 31 5 times, resulting in a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 102885.0
Subtracting 30 from 31 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.

Going ahead to step 7:
6 goes into 10 1 times with a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 102885.1
The remainder is 4 after subtracting 6 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 8:
40 divided by 6 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 102885.16
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
6 goes into 40 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 102885.166
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 102885.166 and a remainder of 0.0004.