We're dividing 584986 by 31 
We want to divide 584986 by 31.

Step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 31

Moving on to step 2:
31 can be fit into 58 1 times, resulting in 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.
Fetch the next digit (4) from the dividend, attach it to 27 and continue: 274 / 31

On to step 3:
31 can be fit into 274 8 times, resulting in a remainder of 26.
Put 8 as the next digit of the answer. 
Result so far: 18.0
The remainder is 26 after subtracting 248 from 274.
Take the next digit (9) from the dividend and append it to 26, then repeat: 269 / 31

Let's proceed to step 4:
When dividing 269 by 31, we get 8 with a remainder of 21.
Write down 8 as next digit of the result. 
Result so far: 188.0
The remainder is 21 after subtracting 248 from 269.
Fetch the next digit (8) from the dividend, attach it to 21 and continue: 218 / 31

Step 5:
31 goes into 218 7 times with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 1887.0
If we subtract 217 from 218, we get 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 31

Advancing to step 6:
When dividing 16 by 31, we get 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 18870.0
Subtracting 0 from 16 leaves us 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.

On to step 7:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 18870.5
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 8:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 18870.51
Deduct 31 from 50 and we're left 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.

Moving on to step 9:
31 goes into 190 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 18870.516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 10:
If we divide 40 by 31, we get 1 and a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 18870.5161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 11:
When dividing 90 by 31, we get 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 18870.51612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 12:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 18870.516129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 13:
10 divided by 31 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 18870.516129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 14:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 18870.51612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

After the division, we end up with 18870.51612903 and a remainder of 7e-09.