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

Step 1:
When dividing 5 by 6, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 6

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

On to step 3:
6 can be fit into 43 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 97.0
If we take 42 away from 43, we end up with 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 6

Step 4:
6 goes into 15 2 times with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 972.0
If we subtract 12 from 15, we get 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 6

Going ahead to step 5:
The number 6 fits into 32 5 times, leaving a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 9725.0
Subtracting 30 from 32 leaves us with 2.
Fetch the next digit (6) from the dividend, attach it to 2 and continue: 26 / 6

Step 6:
6 goes into 26 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 97254.0
Subtracting 24 from 26 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
When dividing 20 by 6, we get 3 with a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 97254.3
Subtracting 18 from 20 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
When dividing 20 by 6, we get 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 97254.33
If we take 18 away from 20, we end up with 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 97254.33 with a remaining 0.002.