840976 divided by 31 
Let's see how many times 31 fits into 840976.

Step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Grab the next digit (4) from the dividend, add it to 8, then carry on: 84 / 31

Let's proceed to step 2:
84 divided by 31 is 2 with a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 62 away from 84, we end up with 22.
Bring next digit (0) of the dividend behind the 22 and repeat the process: 220 / 31

Going ahead to step 3:
31 goes into 220 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtract 217 from 220 to get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 31

Let's proceed to step 4:
When dividing 39 by 31, we get 1 with a remainder of 8.
The next digit of our result is 1. 
Result so far: 271.0
Deduct 31 from 39 and we're left with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 31

Advancing to step 5:
31 can be fit into 87 2 times, resulting in a remainder of 25.
Record the quotient 2 as the next digit in the result. 
Result so far: 2712.0
Subtracting 62 from 87 leaves us with 25.
Fetch the next digit (6) from the dividend, attach it to 25 and continue: 256 / 31

Moving on to step 6:
31 can be fit into 256 8 times, resulting in a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 27128.0
Deduct 248 from 256 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 7:
The number 31 fits into 80 2 times, leaving a remainder of 18.
The next digit of our result is 2. 
Result so far: 27128.2
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 8:
When dividing 180 by 31, we get 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 27128.25
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 9:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 27128.258
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 27128.258
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 27128.25806
Deduct 186 from 200 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 12:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 27128.258064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 13:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 27128.2580645
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 14:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 27128.25806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

In conclusion, the division gives 27128.25806451 with a balance of 1.9e-08.