Let's divide 618878 by 31
We want to divide 618878 by 31.

Let's proceed to step 1:
If we divide 6 by 31, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 31

Moving on to step 2:
The number 31 fits into 61 1 times, leaving a remainder of 30.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 30 after subtracting 31 from 61.
Grab the next digit (8) from the dividend, add it to 30, then carry on: 308 / 31

Step 3:
The number 31 fits into 308 9 times, leaving a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
The remainder is 29 after subtracting 279 from 308.
Take the next digit (8) from the dividend and append it to 29, then repeat: 298 / 31

Going ahead to step 4:
31 goes into 298 9 times with a remainder of 19.
Put 9 as the next digit of the answer. 
Result so far: 199.0
Deduct 279 from 298 and we're left with 19.
Bring next digit (7) of the dividend behind the 19 and repeat the process: 197 / 31

Step 5:
31 goes into 197 6 times with a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 1996.0
If we take 186 away from 197, we end up with 11.
Append the next digit (8) from the dividend to 11 and continue with: 118 / 31

Advancing to step 6:
118 divided by 31 is 3 with a remainder of 25.
Use 3 as the next digit of our solution. 
Result so far: 19963.0
Deduct 93 from 118 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 7:
When dividing 250 by 31, we get 8 with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 19963.8
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 8:
31 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 19963.8
Subtracting 0 from 20 leaves us 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.

Moving on to step 9:
When dividing 200 by 31, we get 6 with a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 19963.806
Subtract 186 from 200 to 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.

Let's proceed to step 10:
If we divide 140 by 31, we get 4 and a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 19963.8064
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.

Let's proceed to step 11:
31 goes into 160 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 19963.80645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 12:
50 divided by 31 is 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 19963.806451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 13:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 19963.8064516
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 14:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 19963.80645161
Subtract 31 from 40 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.

Our division results in 19963.80645161 with a remaining 9e-09.