We divide 31768 by 6
The aim is to understand the frequency of 6 in 31768.

Step 1:
6 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 6

Step 2:
31 divided by 6 is 5 with a remainder of 1.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 30 away from 31, we end up with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 6

Let's proceed to step 3:
6 can be fit into 17 2 times, resulting in a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 52.0
Subtracting 12 from 17 leaves us with 5.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 6

Going ahead to step 4:
6 goes into 56 9 times with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 529.0
The remainder is 2 after subtracting 54 from 56.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 6

Going ahead to step 5:
6 can be fit into 28 4 times, resulting in a remainder of 4.
The next digit of our result is 4. 
Result so far: 5294.0
Subtract 24 from 28 to get 4.
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 6:
If we divide 40 by 6, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 5294.6
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.

On to step 7:
6 goes into 40 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 5294.66
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.

After the division, we end up with 5294.66 and a remainder of 0.004.