We're dividing 978174 by 31 
Let's see how many times 31 fits into 978174.

Step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 31

Let's proceed to step 2:
When dividing 97 by 31, we get 3 with a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we take 93 away from 97, we end up with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 31

Let's proceed to step 3:
When dividing 48 by 31, we get 1 with a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
If we subtract 31 from 48, we get 17.
Grab the next digit (1) from the dividend, add it to 17, then carry on: 171 / 31

Moving on to step 4:
171 divided by 31 is 5 with a remainder of 16.
Use 5 as the next digit of our solution. 
Result so far: 315.0
If we take 155 away from 171, we end up with 16.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 31

Moving on to step 5:
If we divide 167 by 31, we get 5 and a remainder of 12.
Put 5 as the next digit of the answer. 
Result so far: 3155.0
Subtract 155 from 167 to get 12.
Include the next digit (4) from the dividend after 12, then repeat: 124 / 31

Advancing to step 6:
124 divided by 31 is 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 31554.0
If we take 124 away from 124, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 7:
31 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 31554.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
31 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 31554.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 31554.0, and the remainder is 0.0.