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

Going ahead to step 1:
The number 6 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 6

On to step 2:
57 divided by 6 is 9 with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtract 54 from 57 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 6

Step 3:
When dividing 39 by 6, we get 6 with a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 96.0
If we subtract 36 from 39, we get 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 6

Step 4:
6 can be fit into 33 5 times, resulting in a remainder of 3.
The next digit of our result is 5. 
Result so far: 965.0
Subtracting 30 from 33 leaves us with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 6

Moving on to step 5:
6 goes into 33 5 times with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 9655.0
Deduct 30 from 33 and we're left with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 6

Moving on to step 6:
31 divided by 6 is 5 with a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 96555.0
Deduct 30 from 31 and we're left 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.

Advancing to step 7:
If we divide 10 by 6, we get 1 and a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 96555.1
If we take 6 away from 10, 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 8:
40 divided by 6 is 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 96555.16
Subtract 36 from 40 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 9:
6 goes into 40 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 96555.166
Deduct 36 from 40 and we're left 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.

The quotient of the division is 96555.166, and the remainder is 0.0004.