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

On to step 1:
6 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 6

Step 2:
The number 6 fits into 32 5 times, leaving a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtract 30 from 32 to get 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 6

Step 3:
When dividing 22 by 6, we get 3 with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 53.0
Subtract 18 from 22 to get 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 6

Step 4:
49 divided by 6 is 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 538.0
If we subtract 48 from 49, we get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 6

Advancing to step 5:
If we divide 15 by 6, we get 2 and a remainder of 3.
The next digit of our result is 2. 
Result so far: 5382.0
If we subtract 12 from 15, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 6

Moving on to step 6:
6 can be fit into 38 6 times, resulting in a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 53826.0
Subtract 36 from 38 to 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.

Advancing to step 7:
If we divide 20 by 6, we get 3 and a remainder of 2.
The next digit of our result is 3. 
Result so far: 53826.3
Subtract 18 from 20 to 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.

Advancing to step 8:
If we divide 20 by 6, we get 3 and a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 53826.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.

Our division results in 53826.33 with a remaining 0.002.