We look at the division of 487718 by 31 
We want to divide 487718 by 31.

Let's proceed to step 1:
When dividing 4 by 31, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Append the next digit (8) from the dividend to 4 and continue with: 48 / 31

Moving on to step 2:
If we divide 48 by 31, we get 1 and a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 31 from 48 leaves us with 17.
Take the next digit (7) from the dividend and append it to 17, then repeat: 177 / 31

On to step 3:
31 can be fit into 177 5 times, resulting in a remainder of 22.
The next digit of our result is 5. 
Result so far: 15.0
Subtract 155 from 177 to get 22.
Bring next digit (7) of the dividend behind the 22 and repeat the process: 227 / 31

Going ahead to step 4:
227 divided by 31 is 7 with a remainder of 10.
Write down 7 as next digit of the result. 
Result so far: 157.0
Subtract 217 from 227 to get 10.
Append the next digit (1) from the dividend to 10 and continue with: 101 / 31

Step 5:
31 goes into 101 3 times with a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 1573.0
Deduct 93 from 101 and we're left with 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 31

Moving on to step 6:
31 goes into 88 2 times with a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 15732.0
Deduct 62 from 88 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 7:
31 can be fit into 260 8 times, resulting in a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 15732.8
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 8:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 15732.83
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 9:
When dividing 270 by 31, we get 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 15732.838
If we take 248 away from 270, 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.

Advancing to step 10:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 15732.8387
Subtract 217 from 220 to get 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 11:
31 goes into 30 0 times with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 15732.8387
Subtract 0 from 30 to get 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 12:
31 can be fit into 300 9 times, resulting in a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 15732.838709
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.

Moving on to step 13:
210 divided by 31 is 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 15732.8387096
If we take 186 away from 210, we end up 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.

Step 14:
When dividing 240 by 31, we get 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 15732.83870967
If we take 217 away from 240, we end up 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.

After the division, we end up with 15732.83870967 and a remainder of 2.3e-08.