977147 ÷ 31 
Let's see how many times 31 fits into 977147.

On to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 31

Going ahead to step 2:
97 divided by 31 is 3 with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 93 from 97 to get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

Advancing to step 3:
31 goes into 47 1 times with a remainder of 16.
Record the quotient 1 as the next digit in the result. 
Result so far: 31.0
If we subtract 31 from 47, we get 16.
Grab the next digit (1) from the dividend, add it to 16, then carry on: 161 / 31

Advancing to step 4:
If we divide 161 by 31, we get 5 and a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 315.0
If we take 155 away from 161, we end up with 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Advancing to step 5:
31 can be fit into 64 2 times, resulting in a remainder of 2.
The next digit of our result is 2. 
Result so far: 3152.0
The remainder is 2 after subtracting 62 from 64.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 31

Let's proceed to step 6:
The number 31 fits into 27 0 times, leaving a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 31520.0
Subtract 0 from 27 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.

On to step 7:
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: 31520.8
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.

Step 8:
31 goes into 220 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 31520.87
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.

Moving on to step 9:
31 can be fit into 30 0 times, resulting in a remainder of 30.
The next digit of our result is 0. 
Result so far: 31520.87
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.

Advancing to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 31520.8709
If we take 279 away from 300, we end up 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:
31 goes into 210 6 times with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 31520.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.

Moving on to step 12:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 31520.870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 13:
31 goes into 230 7 times with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 31520.8709677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 31520.8709677 with a balance of 1.3e-07.