585830 divided by 6 
We're looking to find how many times 6 goes into 585830.

Going ahead to step 1:
If we divide 5 by 6, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 6

On to step 2:
6 goes into 58 9 times with a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 9.0
The remainder is 4 after subtracting 54 from 58.
Include the next digit (5) from the dividend after 4, then repeat: 45 / 6

Going ahead to step 3:
The number 6 fits into 45 7 times, leaving a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 97.0
Deduct 42 from 45 and we're left with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 6

On to step 4:
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: 976.0
Subtracting 36 from 38 leaves us with 2.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 6

Going ahead to step 5:
6 goes into 23 3 times with a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 9763.0
If we take 18 away from 23, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 6

Advancing to step 6:
6 goes into 50 8 times with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 97638.0
Deduct 48 from 50 and we're left 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.

Moving on to step 7:
6 goes into 20 3 times with a remainder of 2.
The next digit of our result is 3. 
Result so far: 97638.3
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
If we divide 20 by 6, we get 3 and a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 97638.33
Deduct 18 from 20 and we're left 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.

The final outcome is 97638.33, with a leftover of 0.002.