Let's divide 585522 by 6
We want to figure out the number of times 585522 can be divided by 6.

Step 1:
6 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 6

Going ahead to step 2:
6 goes into 58 9 times with a remainder of 4.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtract 54 from 58 to get 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 6

Moving on to step 3:
6 can be fit into 45 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 97.0
Deduct 42 from 45 and we're left with 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 6

Moving on to step 4:
6 can be fit into 35 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 975.0
Subtracting 30 from 35 leaves us with 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 6

Let's proceed to step 5:
6 can be fit into 52 8 times, resulting in a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 9758.0
Deduct 48 from 52 and we're left with 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 6

Moving on to step 6:
The number 6 fits into 42 7 times, leaving a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 97587.0
If we take 42 away from 42, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
0 divided by 6 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 97587.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
0 divided by 6 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 97587.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 97587.0, with a leftover of 0.0.