We divide 585643 by 31
We want to figure out the number of times 585643 can be divided by 31.

Going ahead to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 31

Let's proceed to step 2:
31 goes into 58 1 times with a remainder of 27.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 58 to get 27.
Bring next digit (5) of the dividend behind the 27 and repeat the process: 275 / 31

Step 3:
275 divided by 31 is 8 with a remainder of 27.
The next digit of our result is 8. 
Result so far: 18.0
Subtracting 248 from 275 leaves us with 27.
Grab the next digit (6) from the dividend, add it to 27, then carry on: 276 / 31

Step 4:
31 goes into 276 8 times with a remainder of 28.
Write down 8 as next digit of the result. 
Result so far: 188.0
The remainder is 28 after subtracting 248 from 276.
Fetch the next digit (4) from the dividend, attach it to 28 and continue: 284 / 31

Going ahead to step 5:
284 divided by 31 is 9 with a remainder of 5.
The next digit of our result is 9. 
Result so far: 1889.0
Deduct 279 from 284 and we're left with 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 31

Let's proceed to step 6:
31 can be fit into 53 1 times, resulting in a remainder of 22.
The number 1 becomes the next digit in our result. 
Result so far: 18891.0
If we take 31 away from 53, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
31 goes into 220 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 18891.7
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
31 goes into 30 0 times with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 18891.7
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 9:
300 divided by 31 is 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 18891.709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 10:
If we divide 210 by 31, we get 6 and a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 18891.7096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 11:
When dividing 240 by 31, we get 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 18891.70967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 12:
If we divide 230 by 31, we get 7 and a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 18891.709677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 18891.709677, with a leftover of 1.3e-06.