We're dividing 877627 by 31 
Let's see how many times 31 fits into 877627.

Moving on to step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 31

Step 2:
When dividing 87 by 31, we get 2 with a remainder of 25.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 62 from 87, we get 25.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 31

On to step 3:
31 can be fit into 257 8 times, resulting in a remainder of 9.
The next digit of our result is 8. 
Result so far: 28.0
Deduct 248 from 257 and we're left with 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 31

Step 4:
31 can be fit into 96 3 times, resulting in a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 283.0
If we subtract 93 from 96, we get 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 31

On to step 5:
32 divided by 31 is 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 2831.0
Deduct 31 from 32 and we're left with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 31

Moving on to step 6:
The number 31 fits into 17 0 times, leaving a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 28310.0
If we subtract 0 from 17, we 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.

Let's proceed to step 7:
170 divided by 31 is 5 with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 28310.5
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.

On to step 8:
31 goes into 150 4 times with a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 28310.54
Subtract 124 from 150 to 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.

On to step 9:
31 goes into 260 8 times with a remainder of 12.
The next digit of our result is 8. 
Result so far: 28310.548
If we take 248 away from 260, we end up 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.

Advancing to step 10:
31 can be fit into 120 3 times, resulting in a remainder of 27.
The next digit of our result is 3. 
Result so far: 28310.5483
If we subtract 93 from 120, we get 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 11:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 28310.54838
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 12:
31 goes into 220 7 times with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 28310.548387
If we subtract 217 from 220, we 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.

Let's proceed to step 13:
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: 28310.548387
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 14:
31 goes into 300 9 times with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 28310.54838709
If we subtract 279 from 300, we 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.

The quotient of the division is 28310.54838709, and the remainder is 2.1e-08.