We divide 505381 by 31
Our goal is to divide 505381 by 31.

On to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

Going ahead to step 2:
31 goes into 50 1 times with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 31 from 50 leaves us with 19.
Append the next digit (5) from the dividend to 19 and continue with: 195 / 31

Step 3:
31 goes into 195 6 times with a remainder of 9.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 186 from 195, we get 9.
Fetch the next digit (3) from the dividend, attach it to 9 and continue: 93 / 31

On to step 4:
When dividing 93 by 31, we get 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 163.0
Subtracting 93 from 93 leaves us with 0.
Grab the next digit (8) from the dividend, add it to 0, then carry on: 8 / 31

On to step 5:
If we divide 8 by 31, we get 0 and a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 1630.0
If we take 0 away from 8, we end up with 8.
Take the next digit (1) from the dividend and append it to 8, then repeat: 81 / 31

Going ahead to step 6:
If we divide 81 by 31, we get 2 and a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 16302.0
The remainder is 19 after subtracting 62 from 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16302.6
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 8:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 16302.61
Deduct 31 from 40 and we're left with 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 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 16302.612
Subtracting 62 from 90 leaves us 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 10:
31 goes into 280 9 times with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 16302.6129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 11:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 16302.6129
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 12:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 16302.612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 13:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 16302.6129032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 14:
When dividing 80 by 31, we get 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 16302.61290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 16302.61290322, and the remainder is 1.8e-08.