642418 ÷ 31 
Our goal is to divide 642418 by 31.

Step 1:
If we divide 6 by 31, we get 0 and a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Going ahead to step 2:
If we divide 64 by 31, we get 2 and a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 62 away from 64, we end up with 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 31

Going ahead to step 3:
The number 31 fits into 22 0 times, leaving a remainder of 22.
The next digit of our result is 0. 
Result so far: 20.0
If we subtract 0 from 22, we get 22.
Fetch the next digit (4) from the dividend, attach it to 22 and continue: 224 / 31

Going ahead to step 4:
If we divide 224 by 31, we get 7 and a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 207.0
Deduct 217 from 224 and we're left with 7.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 31

On to step 5:
31 goes into 71 2 times with a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 2072.0
Subtracting 62 from 71 leaves us with 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 31

On to step 6:
If we divide 98 by 31, we get 3 and a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 20723.0
Deduct 93 from 98 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
50 divided by 31 is 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 20723.1
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.

Let's proceed to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 20723.16
Deduct 186 from 190 and we're left 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.

Moving on to step 9:
31 goes into 40 1 times with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 20723.161
If we subtract 31 from 40, we 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.

Advancing to step 10:
31 goes into 90 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 20723.1612
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 11:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 20723.16129
If we take 279 away from 280, we end up 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.

On to step 12:
When dividing 10 by 31, we get 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 20723.16129
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.

Let's proceed to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 20723.1612903
If we take 93 away from 100, we end up 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.

On to step 14:
When dividing 70 by 31, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 20723.16129032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 20723.16129032 with a remainder of 8e-09.