We're dividing 984578 by 31 
We want to divide 984578 by 31.

Advancing to step 1:
9 divided by 31 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 31

Advancing to step 2:
When dividing 98 by 31, we get 3 with a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 93 from 98 leaves us with 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 31

Moving on to step 3:
31 goes into 54 1 times with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 31.0
If we subtract 31 from 54, we get 23.
Take the next digit (5) from the dividend and append it to 23, then repeat: 235 / 31

Let's proceed to step 4:
31 goes into 235 7 times with a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 317.0
Deduct 217 from 235 and we're left with 18.
Take the next digit (7) from the dividend and append it to 18, then repeat: 187 / 31

Let's proceed to step 5:
187 divided by 31 is 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 3176.0
Subtracting 186 from 187 leaves us with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 31

Let's proceed to step 6:
31 goes into 18 0 times with a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 31760.0
Subtract 0 from 18 to 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.

Let's proceed to step 7:
The number 31 fits into 180 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 31760.5
Subtract 155 from 180 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 8:
When dividing 250 by 31, we get 8 with a remainder of 2.
The next digit of our result is 8. 
Result so far: 31760.58
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.

Step 9:
If we divide 20 by 31, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 31760.58
If we take 0 away from 20, we end up 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.

Advancing to step 10:
When dividing 200 by 31, we get 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 31760.5806
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 11:
If we divide 140 by 31, we get 4 and a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 31760.58064
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 12:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 31760.580645
If we take 155 away from 160, we end up 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.

Going ahead to step 13:
31 goes into 50 1 times with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 31760.5806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 14:
31 goes into 190 6 times with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 31760.58064516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 31760.58064516, and the remainder is 4e-09.