Let's divide 628140 by 31
We want to figure out the number of times 628140 can be divided by 31.

Let's proceed to step 1:
The number 31 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Include the next digit (2) from the dividend after 6, then repeat: 62 / 31

Step 2:
When dividing 62 by 31, we get 2 with a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 62 from 62 leaves us with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 31

On to step 3:
When dividing 8 by 31, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 20.0
If we take 0 away from 8, we end up with 8.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 31

Going ahead to step 4:
If we divide 81 by 31, we get 2 and a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 202.0
Subtract 62 from 81 to get 19.
Take the next digit (4) from the dividend and append it to 19, then repeat: 194 / 31

Step 5:
31 goes into 194 6 times with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 2026.0
Subtract 186 from 194 to get 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 31

Moving on to step 6:
31 goes into 80 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 20262.0
If we take 62 away from 80, we end up 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.

Going ahead to step 7:
When dividing 180 by 31, we get 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 20262.5
Deduct 155 from 180 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.

Advancing to step 8:
When dividing 250 by 31, we get 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 20262.58
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
The number 31 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 20262.58
If we take 0 away from 20, we end up 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.

Going ahead to step 10:
If we divide 200 by 31, we get 6 and a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 20262.5806
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 11:
140 divided by 31 is 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 20262.58064
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 12:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 20262.580645
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.

Going ahead to step 13:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 20262.5806451
Deduct 31 from 50 and we're left 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.

Let's proceed to step 14:
If we divide 190 by 31, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 20262.58064516
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.

After the division, we end up with 20262.58064516 and a remainder of 4e-09.