Let's divide 839164 by 6
The aim is to understand the frequency of 6 in 839164.

Going ahead to step 1:
6 can be fit into 8 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 6 from 8, we get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 6

Going ahead to step 2:
The number 6 fits into 23 3 times, leaving a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 13.0
If we take 18 away from 23, we end up with 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 6

Let's proceed to step 3:
If we divide 59 by 6, we get 9 and a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 139.0
The remainder is 5 after subtracting 54 from 59.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 6

Moving on to step 4:
When dividing 51 by 6, we get 8 with a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 1398.0
If we take 48 away from 51, we end up with 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 6

Advancing to step 5:
If we divide 36 by 6, we get 6 and a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 13986.0
Deduct 36 from 36 and we're left with 0.
Fetch the next digit (4) from the dividend, attach it to 0 and continue: 4 / 6

On to step 6:
When dividing 4 by 6, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 139860.0
The remainder is 4 after subtracting 0 from 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
6 can be fit into 40 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 139860.6
The remainder is 4 after subtracting 36 from 40.
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:
6 goes into 40 6 times with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 139860.66
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 139860.66 and a remainder of 0.004.