We look at the division of 638252 by 31 
We want to divide 638252 by 31.

On to step 1:
31 goes into 6 0 times with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Append the next digit (3) from the dividend to 6 and continue with: 63 / 31

Advancing to step 2:
When dividing 63 by 31, we get 2 with a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 62 from 63 to get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 31

Going ahead to step 3:
31 goes into 18 0 times with a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Deduct 0 from 18 and we're left with 18.
Bring next digit (2) of the dividend behind the 18 and repeat the process: 182 / 31

Advancing to step 4:
31 goes into 182 5 times with a remainder of 27.
The number 5 becomes the next digit in our result. 
Result so far: 205.0
Deduct 155 from 182 and we're left with 27.
Fetch the next digit (5) from the dividend, attach it to 27 and continue: 275 / 31

Step 5:
275 divided by 31 is 8 with a remainder of 27.
Write down 8 as next digit of the result. 
Result so far: 2058.0
The remainder is 27 after subtracting 248 from 275.
Include the next digit (2) from the dividend after 27, then repeat: 272 / 31

On to step 6:
The number 31 fits into 272 8 times, leaving a remainder of 24.
The next digit of our result is 8. 
Result so far: 20588.0
If we subtract 248 from 272, 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.

Step 7:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 20588.7
If we take 217 away from 240, we end up 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.

Moving on to step 8:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 20588.77
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 20588.77, and the remainder is 0.013.