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

Let's proceed to step 1:
5 divided by 31 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 31

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
If we take 31 away from 58, we end up with 27.
Bring next digit (2) of the dividend behind the 27 and repeat the process: 272 / 31

Let's proceed to step 3:
31 can be fit into 272 8 times, resulting in a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
If we subtract 248 from 272, we get 24.
Include the next digit (6) from the dividend after 24, then repeat: 246 / 31

On to step 4:
When dividing 246 by 31, we get 7 with a remainder of 29.
Write down 7 as next digit of the result. 
Result so far: 187.0
Deduct 217 from 246 and we're left with 29.
Include the next digit (8) from the dividend after 29, then repeat: 298 / 31

Let's proceed to step 5:
31 can be fit into 298 9 times, resulting in a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 1879.0
Deduct 279 from 298 and we're left with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 31

Going ahead to step 6:
When dividing 197 by 31, we get 6 with a remainder of 11.
Put 6 as the next digit of the answer. 
Result so far: 18796.0
If we subtract 186 from 197, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 7:
When dividing 110 by 31, we get 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 18796.3
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 8:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 18796.35
Subtracting 155 from 170 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 9:
31 goes into 150 4 times with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 18796.354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 10:
260 divided by 31 is 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 18796.3548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 11:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 18796.35483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 12:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 18796.354838
The remainder is 22 after subtracting 248 from 270.
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 13:
31 goes into 220 7 times with a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 18796.3548387
If we take 217 away from 220, we end up 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.

Moving on to step 14:
If we divide 30 by 31, we get 0 and a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 18796.3548387
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.

In conclusion, the division gives 18796.3548387 with a balance of 3e-08.