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

Moving on to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 31

Let's proceed to step 2:
50 divided by 31 is 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 31 away from 50, we end up with 19.
Bring next digit (9) of the dividend behind the 19 and repeat the process: 199 / 31

On to step 3:
31 can be fit into 199 6 times, resulting in a remainder of 13.
The next digit of our result is 6. 
Result so far: 16.0
If we take 186 away from 199, we end up with 13.
Grab the next digit (1) from the dividend, add it to 13, then carry on: 131 / 31

Moving on to step 4:
131 divided by 31 is 4 with a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 164.0
If we subtract 124 from 131, we get 7.
Take the next digit (2) from the dividend and append it to 7, then repeat: 72 / 31

Step 5:
If we divide 72 by 31, we get 2 and a remainder of 10.
The next digit of our result is 2. 
Result so far: 1642.0
Deduct 62 from 72 and we're left with 10.
Take the next digit (9) from the dividend and append it to 10, then repeat: 109 / 31

Let's proceed to step 6:
31 can be fit into 109 3 times, resulting in a remainder of 16.
Use 3 as the next digit of our solution. 
Result so far: 16423.0
Subtracting 93 from 109 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 7:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 16423.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.

Going ahead to step 8:
50 divided by 31 is 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 16423.51
If we take 31 away from 50, we end up with 19.
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:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16423.516
Subtracting 186 from 190 leaves us 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.

Moving on to step 10:
40 divided by 31 is 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 16423.5161
If we subtract 31 from 40, we 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.

Let's proceed to step 11:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 16423.51612
Deduct 62 from 90 and we're left 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.

Moving on to step 12:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 16423.516129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 13:
31 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 16423.516129
If we subtract 0 from 10, we get 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.
Write down 3 as next digit of the result. 
Result so far: 16423.51612903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final result is 16423.51612903 with a remainder of 7e-09.