We're dividing 578376 by 31 
We want to figure out the number of times 578376 can be divided by 31.

Going ahead to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
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

On to step 2:
31 can be fit into 57 1 times, resulting in a remainder of 26.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 31 from 57 to get 26.
Grab the next digit (8) from the dividend, add it to 26, then carry on: 268 / 31

On to step 3:
If we divide 268 by 31, we get 8 and a remainder of 20.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
If we subtract 248 from 268, we get 20.
Bring next digit (3) of the dividend behind the 20 and repeat the process: 203 / 31

Let's proceed to step 4:
203 divided by 31 is 6 with a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 186.0
If we subtract 186 from 203, we get 17.
Bring next digit (7) of the dividend behind the 17 and repeat the process: 177 / 31

Let's proceed to step 5:
If we divide 177 by 31, we get 5 and a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 1865.0
If we subtract 155 from 177, we get 22.
Grab the next digit (6) from the dividend, add it to 22, then carry on: 226 / 31

On to step 6:
If we divide 226 by 31, we get 7 and a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 18657.0
Subtract 217 from 226 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
90 divided by 31 is 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 18657.2
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 8:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 18657.29
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 9:
10 divided by 31 is 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 18657.29
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 10:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 18657.2903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
70 divided by 31 is 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 18657.29032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 12:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 18657.290322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 18657.290322 and a remainder of 1.8e-06.