20742 divided by 31 
We want to divide 20742 by 31.

Moving on to step 1:
31 goes into 2 0 times with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Append the next digit (0) from the dividend to 2 and continue with: 20 / 31

Advancing to step 2:
When dividing 20 by 31, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 20 after subtracting 0 from 20.
Fetch the next digit (7) from the dividend, attach it to 20 and continue: 207 / 31

Step 3:
207 divided by 31 is 6 with a remainder of 21.
Write down 6 as next digit of the result. 
Result so far: 6.0
Subtract 186 from 207 to get 21.
Grab the next digit (4) from the dividend, add it to 21, then carry on: 214 / 31

Going ahead to step 4:
31 goes into 214 6 times with a remainder of 28.
Record the quotient 6 as the next digit in the result. 
Result so far: 66.0
If we subtract 186 from 214, we get 28.
Grab the next digit (2) from the dividend, add it to 28, then carry on: 282 / 31

Going ahead to step 5:
The number 31 fits into 282 9 times, leaving a remainder of 3.
The next digit of our result is 9. 
Result so far: 669.0
Subtract 279 from 282 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 6:
If we divide 30 by 31, we get 0 and a remainder of 30.
The next digit of our result is 0. 
Result so far: 669.0
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 7:
If we divide 300 by 31, we get 9 and a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 669.09
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 8:
When dividing 210 by 31, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 669.096
Subtract 186 from 210 to 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.

Moving on to step 9:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 669.0967
The remainder is 23 after subtracting 217 from 240.
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 10:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 669.09677
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.

After the division, we end up with 669.09677 and a remainder of 1.3e-05.