578874 ÷ 31 
Our goal is to divide 578874 by 31.

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 31

Moving on to step 2:
If we divide 57 by 31, we get 1 and a remainder of 26.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 31 from 57 and we're left with 26.
Fetch the next digit (8) from the dividend, attach it to 26 and continue: 268 / 31

On to step 3:
When dividing 268 by 31, we get 8 with a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Subtract 248 from 268 to get 20.
Take the next digit (8) from the dividend and append it to 20, then repeat: 208 / 31

Advancing to step 4:
When dividing 208 by 31, we get 6 with a remainder of 22.
Record the quotient 6 as the next digit in the result. 
Result so far: 186.0
The remainder is 22 after subtracting 186 from 208.
Bring next digit (7) of the dividend behind the 22 and repeat the process: 227 / 31

On to step 5:
227 divided by 31 is 7 with a remainder of 10.
Write down 7 as next digit of the result. 
Result so far: 1867.0
Subtract 217 from 227 to get 10.
Grab the next digit (4) from the dividend, add it to 10, then carry on: 104 / 31

Advancing to step 6:
31 goes into 104 3 times with a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 18673.0
Subtracting 93 from 104 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
The number 31 fits into 110 3 times, leaving a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 18673.3
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 8:
31 goes into 170 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 18673.35
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 18673.354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 10:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 18673.3548
Subtracting 248 from 260 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 11:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 18673.35483
If we subtract 93 from 120, we 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.

Let's proceed to step 12:
If we divide 270 by 31, we get 8 and a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 18673.354838
If we subtract 248 from 270, we 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.

On to step 13:
31 can be fit into 220 7 times, resulting in a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 18673.3548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 14:
When dividing 30 by 31, we get 0 with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 18673.3548387
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.

The quotient of the division is 18673.3548387, and the remainder is 3e-08.