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

Let's proceed to step 1:
6 divided by 31 is 0 with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Include the next digit (2) from the dividend after 6, then repeat: 62 / 31

Moving on to step 2:
If we divide 62 by 31, we get 2 and a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 0 after subtracting 62 from 62.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 31

Going ahead to step 3:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 20.0
If we take 0 away from 7, we end up with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 31

Going ahead to step 4:
If we divide 79 by 31, we get 2 and a remainder of 17.
The next digit of our result is 2. 
Result so far: 202.0
The remainder is 17 after subtracting 62 from 79.
Take the next digit (8) from the dividend and append it to 17, then repeat: 178 / 31

On to step 5:
If we divide 178 by 31, we get 5 and a remainder of 23.
Put 5 as the next digit of the answer. 
Result so far: 2025.0
If we subtract 155 from 178, we get 23.
Include the next digit (9) from the dividend after 23, then repeat: 239 / 31

On to step 6:
31 goes into 239 7 times with a remainder of 22.
Use 7 as the next digit of our solution. 
Result so far: 20257.0
The remainder is 22 after subtracting 217 from 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 7:
If we divide 220 by 31, we get 7 and a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 20257.7
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.

Going ahead to step 8:
30 divided by 31 is 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 20257.7
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.

Advancing to step 9:
31 goes into 300 9 times with a remainder of 21.
The next digit of our result is 9. 
Result so far: 20257.709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 10:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 20257.7096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 20257.70967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 12:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 20257.709677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 20257.709677, with a leftover of 1.3e-06.