638780 divided by 31 
Our goal is to divide 638780 by 31.

Step 1:
6 divided by 31 is 0 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.
Fetch the next digit (3) from the dividend, attach it to 6 and continue: 63 / 31

Advancing to step 2:
31 can be fit into 63 2 times, resulting in a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 1 after subtracting 62 from 63.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 31

Moving on to step 3:
If we divide 18 by 31, we get 0 and a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
Subtracting 0 from 18 leaves us with 18.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 31

On to step 4:
When dividing 187 by 31, we get 6 with a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 206.0
Subtract 186 from 187 to get 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 31

On to step 5:
31 goes into 18 0 times with a remainder of 18.
Write down 0 as next digit of the result. 
Result so far: 2060.0
If we subtract 0 from 18, we get 18.
Bring next digit (0) of the dividend behind the 18 and repeat the process: 180 / 31

On to step 6:
180 divided by 31 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 20605.0
Subtract 155 from 180 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 7:
When dividing 250 by 31, we get 8 with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 20605.8
Deduct 248 from 250 and we're left 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.

On to step 8:
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: 20605.8
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 9:
31 can be fit into 200 6 times, resulting in a remainder of 14.
The next digit of our result is 6. 
Result so far: 20605.806
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 10:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 20605.8064
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 11:
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: 20605.80645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 12:
If we divide 50 by 31, we get 1 and a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 20605.806451
If we subtract 31 from 50, we get 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 13:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 20605.8064516
If we subtract 186 from 190, we get 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 14:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 20605.80645161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Our division results in 20605.80645161 with a remaining 9e-09.