997316 ÷ 31 
We want to divide 997316 by 31.

On to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Include the next digit (9) from the dividend after 9, then repeat: 99 / 31

Step 2:
When dividing 99 by 31, we get 3 with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 3.0
The remainder is 6 after subtracting 93 from 99.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Advancing to step 3:
31 can be fit into 67 2 times, resulting in a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
The remainder is 5 after subtracting 62 from 67.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 31

Advancing to step 4:
53 divided by 31 is 1 with a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 321.0
If we subtract 31 from 53, we get 22.
Grab the next digit (1) from the dividend, add it to 22, then carry on: 221 / 31

Going ahead to step 5:
The number 31 fits into 221 7 times, leaving a remainder of 4.
The next digit of our result is 7. 
Result so far: 3217.0
Subtract 217 from 221 to get 4.
Append the next digit (6) from the dividend to 4 and continue with: 46 / 31

On to step 6:
When dividing 46 by 31, we get 1 with a remainder of 15.
The next digit of our result is 1. 
Result so far: 32171.0
If we subtract 31 from 46, we get 15.
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 7:
If we divide 150 by 31, we get 4 and a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 32171.4
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.

Step 8:
31 goes into 260 8 times with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 32171.48
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.

On to step 9:
31 goes into 120 3 times with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 32171.483
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 10:
If we divide 270 by 31, we get 8 and a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 32171.4838
Subtracting 248 from 270 leaves us 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.

On to step 11:
220 divided by 31 is 7 with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 32171.48387
The remainder is 3 after subtracting 217 from 220.
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 12:
The number 31 fits into 30 0 times, leaving a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 32171.48387
If we subtract 0 from 30, we get 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 13:
When dividing 300 by 31, we get 9 with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 32171.4838709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 14:
31 goes into 210 6 times with a remainder of 24.
The next digit of our result is 6. 
Result so far: 32171.48387096
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.

Our division results in 32171.48387096 with a remaining 2.4e-08.