We're dividing 511237 by 31 
Our goal is to divide 511237 by 31.

Going ahead to step 1:
31 can be fit into 5 0 times, resulting in 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.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 31

Going ahead to step 2:
If we divide 51 by 31, we get 1 and a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 31 from 51 and we're left with 20.
Append the next digit (1) from the dividend to 20 and continue with: 201 / 31

On to step 3:
201 divided by 31 is 6 with a remainder of 15.
The next digit of our result is 6. 
Result so far: 16.0
If we subtract 186 from 201, we get 15.
Fetch the next digit (2) from the dividend, attach it to 15 and continue: 152 / 31

Moving on to step 4:
If we divide 152 by 31, we get 4 and a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 164.0
Subtracting 124 from 152 leaves us with 28.
Take the next digit (3) from the dividend and append it to 28, then repeat: 283 / 31

Going ahead to step 5:
283 divided by 31 is 9 with a remainder of 4.
The next digit of our result is 9. 
Result so far: 1649.0
Subtracting 279 from 283 leaves us with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

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

Advancing to step 7:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 16491.5
If we subtract 155 from 160, we get 5.
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 8:
31 goes into 50 1 times with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 16491.51
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 9:
If we divide 190 by 31, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16491.516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 10:
31 goes into 40 1 times with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 16491.5161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 11:
31 goes into 90 2 times with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 16491.51612
If we take 62 away from 90, we end up 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.

Going ahead to step 12:
31 can be fit into 280 9 times, resulting in a remainder of 1.
The next digit of our result is 9. 
Result so far: 16491.516129
Subtract 279 from 280 to 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 13:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 16491.516129
Subtracting 0 from 10 leaves us with 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 14:
31 goes into 100 3 times with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 16491.51612903
Deduct 93 from 100 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Our division results in 16491.51612903 with a remaining 7e-09.