We look at the division of 586962 by 31 
Let's see how many times 31 fits into 586962.

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 31

Going ahead to step 2:
58 divided by 31 is 1 with a remainder of 27.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 31 from 58 to get 27.
Append the next digit (6) from the dividend to 27 and continue with: 276 / 31

Going ahead to step 3:
31 can be fit into 276 8 times, resulting in a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
The remainder is 28 after subtracting 248 from 276.
Fetch the next digit (9) from the dividend, attach it to 28 and continue: 289 / 31

Advancing to step 4:
31 can be fit into 289 9 times, resulting in a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 189.0
Subtract 279 from 289 to get 10.
Fetch the next digit (6) from the dividend, attach it to 10 and continue: 106 / 31

Step 5:
The number 31 fits into 106 3 times, leaving a remainder of 13.
Write down 3 as next digit of the result. 
Result so far: 1893.0
Subtracting 93 from 106 leaves us with 13.
Append the next digit (2) from the dividend to 13 and continue with: 132 / 31

Advancing to step 6:
The number 31 fits into 132 4 times, leaving a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 18934.0
If we subtract 124 from 132, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 7:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 18934.2
Subtracting 62 from 80 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 8:
The number 31 fits into 180 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 18934.25
Subtracting 155 from 180 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
31 goes into 250 8 times with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 18934.258
The remainder is 2 after subtracting 248 from 250.
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 10:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 18934.258
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
When dividing 200 by 31, we get 6 with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 18934.25806
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 12:
31 goes into 140 4 times with a remainder of 16.
The next digit of our result is 4. 
Result so far: 18934.258064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 13:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 18934.2580645
If we take 155 away from 160, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 14:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 18934.25806451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

The final result is 18934.25806451 with a remainder of 1.9e-08.