We're dividing 997061 by 31 
Our goal is to divide 997061 by 31.

Advancing to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Take the next digit (9) from the dividend and append it to 9, then repeat: 99 / 31

Advancing to step 2:
31 can be fit into 99 3 times, resulting in a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 93 from 99 leaves us with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Going ahead to step 3:
When dividing 67 by 31, we get 2 with a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 32.0
If we subtract 62 from 67, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 31

Let's proceed to step 4:
When dividing 50 by 31, we get 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 321.0
Deduct 31 from 50 and we're left with 19.
Append the next digit (6) from the dividend to 19 and continue with: 196 / 31

Advancing to step 5:
When dividing 196 by 31, we get 6 with a remainder of 10.
Write down 6 as next digit of the result. 
Result so far: 3216.0
If we subtract 186 from 196, we get 10.
Fetch the next digit (1) from the dividend, attach it to 10 and continue: 101 / 31

On to step 6:
31 can be fit into 101 3 times, resulting in a remainder of 8.
Use 3 as the next digit of our solution. 
Result so far: 32163.0
The remainder is 8 after subtracting 93 from 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
If we divide 80 by 31, we get 2 and a remainder of 18.
The next digit of our result is 2. 
Result so far: 32163.2
If we subtract 62 from 80, we get 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.
Use 5 as the next digit of our solution. 
Result so far: 32163.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.

Moving on to step 9:
When dividing 250 by 31, we get 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 32163.258
Deduct 248 from 250 and we're left with 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: 32163.258
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
If we divide 200 by 31, we get 6 and a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 32163.25806
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 12:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 32163.258064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 13:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 32163.2580645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 14:
31 goes into 50 1 times with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 32163.25806451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

The final outcome is 32163.25806451, with a leftover of 1.9e-08.