Let's divide 840656 by 31
We want to divide 840656 by 31.

On to step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 31

Advancing to step 2:
84 divided by 31 is 2 with a remainder of 22.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 84 leaves us with 22.
Fetch the next digit (0) from the dividend, attach it to 22 and continue: 220 / 31

Step 3:
31 goes into 220 7 times with a remainder of 3.
The next digit of our result is 7. 
Result so far: 27.0
Deduct 217 from 220 and we're left with 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 31

Going ahead to step 4:
31 goes into 36 1 times with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 271.0
Subtract 31 from 36 to get 5.
Append the next digit (5) from the dividend to 5 and continue with: 55 / 31

On to step 5:
31 goes into 55 1 times with a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 2711.0
The remainder is 24 after subtracting 31 from 55.
Take the next digit (6) from the dividend and append it to 24, then repeat: 246 / 31

On to step 6:
246 divided by 31 is 7 with a remainder of 29.
The next digit of our result is 7. 
Result so far: 27117.0
Deduct 217 from 246 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 7:
The number 31 fits into 290 9 times, leaving a remainder of 11.
The next digit of our result is 9. 
Result so far: 27117.9
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.

Going ahead to step 8:
If we divide 110 by 31, we get 3 and a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 27117.93
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.

On to step 9:
170 divided by 31 is 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 27117.935
If we take 155 away from 170, we end up 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.

Step 10:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 27117.9354
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.

Moving on to step 11:
If we divide 260 by 31, we get 8 and a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 27117.93548
Subtract 248 from 260 to 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.

On to step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 27117.935483
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.

On to step 13:
31 goes into 270 8 times with a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 27117.9354838
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.

Going ahead to step 14:
If we divide 220 by 31, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 27117.93548387
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.

The quotient of the division is 27117.93548387, and the remainder is 3e-09.