Let's divide 843940 by 31
We want to figure out the number of times 843940 can be divided by 31.

Going ahead to step 1:
31 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 31

Step 2:
The number 31 fits into 84 2 times, leaving a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 62 from 84 leaves us with 22.
Take the next digit (3) from the dividend and append it to 22, then repeat: 223 / 31

Let's proceed to step 3:
When dividing 223 by 31, we get 7 with a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 27.0
Subtract 217 from 223 to get 6.
Grab the next digit (9) from the dividend, add it to 6, then carry on: 69 / 31

Going ahead to step 4:
When dividing 69 by 31, we get 2 with a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 272.0
Subtract 62 from 69 to get 7.
Take the next digit (4) from the dividend and append it to 7, then repeat: 74 / 31

Advancing to step 5:
The number 31 fits into 74 2 times, leaving a remainder of 12.
Record the quotient 2 as the next digit in the result. 
Result so far: 2722.0
Subtracting 62 from 74 leaves us with 12.
Grab the next digit (0) from the dividend, add it to 12, then carry on: 120 / 31

Step 6:
31 goes into 120 3 times with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 27223.0
Subtract 93 from 120 to 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.

Advancing to step 7:
If we divide 270 by 31, we get 8 and a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 27223.8
If we subtract 248 from 270, we 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.

Step 8:
When dividing 220 by 31, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 27223.87
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 9:
If we divide 30 by 31, we get 0 and a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 27223.87
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 27223.8709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 11:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 27223.87096
If we subtract 186 from 210, we 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.

On to step 12:
31 goes into 240 7 times with a remainder of 23.
The next digit of our result is 7. 
Result so far: 27223.870967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 13:
31 goes into 230 7 times with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 27223.8709677
If we subtract 217 from 230, we get 13.
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 27223.8709677, and the remainder is 1.3e-07.