We're dividing 642765 by 31 
We're looking to find how many times 31 goes into 642765.

Moving on to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Advancing to step 2:
31 goes into 64 2 times with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 62 from 64 leaves us with 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 31

Let's proceed to step 3:
22 divided by 31 is 0 with a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 20.0
If we take 0 away from 22, we end up with 22.
Take the next digit (7) from the dividend and append it to 22, then repeat: 227 / 31

Step 4:
The number 31 fits into 227 7 times, leaving a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 207.0
If we subtract 217 from 227, we get 10.
Bring next digit (6) of the dividend behind the 10 and repeat the process: 106 / 31

Moving on to step 5:
106 divided by 31 is 3 with a remainder of 13.
Record the quotient 3 as the next digit in the result. 
Result so far: 2073.0
If we subtract 93 from 106, we get 13.
Append the next digit (5) from the dividend to 13 and continue with: 135 / 31

On to step 6:
If we divide 135 by 31, we get 4 and a remainder of 11.
Use 4 as the next digit of our solution. 
Result so far: 20734.0
Subtract 124 from 135 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
If we divide 110 by 31, we get 3 and a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 20734.3
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 8:
If we divide 170 by 31, we get 5 and a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 20734.35
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.

On to step 9:
When dividing 150 by 31, we get 4 with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 20734.354
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.

Going ahead to step 10:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The next digit of our result is 8. 
Result so far: 20734.3548
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.

Advancing to step 11:
31 goes into 120 3 times with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 20734.35483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 12:
270 divided by 31 is 8 with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 20734.354838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 13:
31 goes into 220 7 times with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 20734.3548387
Deduct 217 from 220 and we're left 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 14:
30 divided by 31 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 20734.3548387
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 20734.3548387 with a remaining 3e-08.