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

Step 1:
31 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Grab the next digit (6) from the dividend, add it to 8, then carry on: 86 / 31

Step 2:
31 can be fit into 86 2 times, resulting in a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 62 from 86 leaves us with 24.
Fetch the next digit (5) from the dividend, attach it to 24 and continue: 245 / 31

Step 3:
245 divided by 31 is 7 with a remainder of 28.
Use 7 as the next digit of our solution. 
Result so far: 27.0
The remainder is 28 after subtracting 217 from 245.
Take the next digit (4) from the dividend and append it to 28, then repeat: 284 / 31

Step 4:
31 goes into 284 9 times with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 279.0
If we take 279 away from 284, we end up with 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 31

Let's proceed to step 5:
The number 31 fits into 59 1 times, leaving a remainder of 28.
Record the quotient 1 as the next digit in the result. 
Result so far: 2791.0
Subtracting 31 from 59 leaves us with 28.
Include the next digit (5) from the dividend after 28, then repeat: 285 / 31

Going ahead to step 6:
31 goes into 285 9 times with a remainder of 6.
The next digit of our result is 9. 
Result so far: 27919.0
Subtracting 279 from 285 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 27919.1
If we subtract 31 from 60, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 8:
The number 31 fits into 290 9 times, leaving a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 27919.19
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 9:
When dividing 110 by 31, we get 3 with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 27919.193
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.

Step 10:
If we divide 170 by 31, we get 5 and a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 27919.1935
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 11:
150 divided by 31 is 4 with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 27919.19354
Deduct 124 from 150 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.

Advancing to step 12:
When dividing 260 by 31, we get 8 with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 27919.193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
31 can be fit into 120 3 times, resulting in a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 27919.1935483
Deduct 93 from 120 and we're left 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.

Let's proceed to step 14:
If we divide 270 by 31, we get 8 and a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 27919.19354838
Deduct 248 from 270 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.

The quotient of the division is 27919.19354838, and the remainder is 2.2e-08.