We look at the division of 977364 by 31 
We want to divide 977364 by 31.

On to step 1:
31 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 31

Moving on to step 2:
The number 31 fits into 97 3 times, leaving a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
The remainder is 4 after subtracting 93 from 97.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 31

Advancing to step 3:
47 divided by 31 is 1 with a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
Deduct 31 from 47 and we're left with 16.
Grab the next digit (3) from the dividend, add it to 16, then carry on: 163 / 31

Going ahead to step 4:
31 can be fit into 163 5 times, resulting in a remainder of 8.
Use 5 as the next digit of our solution. 
Result so far: 315.0
If we subtract 155 from 163, we get 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 31

On to step 5:
If we divide 86 by 31, we get 2 and a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 3152.0
Subtracting 62 from 86 leaves us with 24.
Bring next digit (4) of the dividend behind the 24 and repeat the process: 244 / 31

Let's proceed to step 6:
31 can be fit into 244 7 times, resulting in a remainder of 27.
Write down 7 as next digit of the result. 
Result so far: 31527.0
If we take 217 away from 244, we end up 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.

Advancing to step 7:
If we divide 270 by 31, we get 8 and a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 31527.8
Subtract 248 from 270 to 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.
Use 7 as the next digit of our solution. 
Result so far: 31527.87
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 9:
31 goes into 30 0 times with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 31527.87
If we take 0 away from 30, we end up 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.

Moving on to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The next digit of our result is 9. 
Result so far: 31527.8709
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 11:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 31527.87096
The remainder is 24 after subtracting 186 from 210.
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 can be fit into 240 7 times, resulting in a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 31527.870967
If we subtract 217 from 240, we 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.

Advancing to step 13:
If we divide 230 by 31, we get 7 and a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 31527.8709677
Subtract 217 from 230 to 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.

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