We're dividing 186487 by 31 
Our goal is to divide 186487 by 31.

Advancing to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 31

On to step 2:
The number 31 fits into 18 0 times, leaving a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 18, we get 18.
Take the next digit (6) from the dividend and append it to 18, then repeat: 186 / 31

Moving on to step 3:
31 can be fit into 186 6 times, resulting in a remainder of 0.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 0 after subtracting 186 from 186.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 31

Going ahead to step 4:
When dividing 4 by 31, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 60.0
Subtract 0 from 4 to get 4.
Append the next digit (8) from the dividend to 4 and continue with: 48 / 31

Advancing to step 5:
31 can be fit into 48 1 times, resulting in a remainder of 17.
Record the quotient 1 as the next digit in the result. 
Result so far: 601.0
If we subtract 31 from 48, we get 17.
Take the next digit (7) from the dividend and append it to 17, then repeat: 177 / 31

Advancing to step 6:
When dividing 177 by 31, we get 5 with a remainder of 22.
Put 5 as the next digit of the answer. 
Result so far: 6015.0
Deduct 155 from 177 and we're left 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.

Step 7:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The next digit of our result is 7. 
Result so far: 6015.7
Subtracting 217 from 220 leaves us 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.

Going ahead to step 8:
30 divided by 31 is 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 6015.7
If we subtract 0 from 30, we 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.

On to step 9:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 6015.709
Subtract 279 from 300 to get 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 10:
When dividing 210 by 31, we get 6 with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 6015.7096
Subtract 186 from 210 to get 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 11:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 6015.70967
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.

Moving on to step 12:
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: 6015.709677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 6015.709677, and the remainder is 1.3e-06.