We're dividing 588649 by 31 
Let's see how many times 31 fits into 588649.

Moving on to step 1:
When dividing 5 by 31, we get 0 with 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.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 31

On to step 2:
When dividing 58 by 31, we get 1 with a remainder of 27.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 31 from 58 and we're left with 27.
Fetch the next digit (8) from the dividend, attach it to 27 and continue: 278 / 31

Step 3:
The number 31 fits into 278 8 times, leaving a remainder of 30.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Deduct 248 from 278 and we're left with 30.
Include the next digit (6) from the dividend after 30, then repeat: 306 / 31

On to step 4:
The number 31 fits into 306 9 times, leaving a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 189.0
Subtracting 279 from 306 leaves us with 27.
Append the next digit (4) from the dividend to 27 and continue with: 274 / 31

Going ahead to step 5:
The number 31 fits into 274 8 times, leaving a remainder of 26.
Write down 8 as next digit of the result. 
Result so far: 1898.0
Subtract 248 from 274 to get 26.
Take the next digit (9) from the dividend and append it to 26, then repeat: 269 / 31

Going ahead to step 6:
31 can be fit into 269 8 times, resulting in a remainder of 21.
The number 8 becomes the next digit in our result. 
Result so far: 18988.0
If we take 248 away from 269, 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.

Moving on to step 7:
The number 31 fits into 210 6 times, leaving a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 18988.6
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
When dividing 240 by 31, we get 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 18988.67
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.

Advancing to step 9:
The number 31 fits into 230 7 times, leaving a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 18988.677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 18988.677 and a remainder of 0.0013.