Let's divide 578365 by 31
Let's see how many times 31 fits into 578365.

Going ahead to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 31

Advancing to step 2:
The number 31 fits into 57 1 times, leaving a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 57 to get 26.
Fetch the next digit (8) from the dividend, attach it to 26 and continue: 268 / 31

Let's proceed to step 3:
When dividing 268 by 31, we get 8 with a remainder of 20.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we subtract 248 from 268, we get 20.
Take the next digit (3) from the dividend and append it to 20, then repeat: 203 / 31

Going ahead to step 4:
31 goes into 203 6 times with a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 186.0
The remainder is 17 after subtracting 186 from 203.
Bring next digit (6) of the dividend behind the 17 and repeat the process: 176 / 31

Going ahead to step 5:
31 can be fit into 176 5 times, resulting in a remainder of 21.
The next digit of our result is 5. 
Result so far: 1865.0
If we take 155 away from 176, we end up with 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 31

On to step 6:
215 divided by 31 is 6 with a remainder of 29.
Record the quotient 6 as the next digit in the result. 
Result so far: 18656.0
Subtracting 186 from 215 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 7:
If we divide 290 by 31, we get 9 and a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 18656.9
Subtracting 279 from 290 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.

Advancing to step 8:
110 divided by 31 is 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 18656.93
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 9:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 18656.935
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.

Going ahead to step 10:
When dividing 150 by 31, we get 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 18656.9354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 11:
31 goes into 260 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 18656.93548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 12:
31 goes into 120 3 times with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 18656.935483
Subtract 93 from 120 to 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.

Advancing to step 13:
31 goes into 270 8 times with a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 18656.9354838
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 14:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 18656.93548387
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.

The quotient of the division is 18656.93548387, and the remainder is 3e-09.