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

Going ahead to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

On to step 2:
The number 31 fits into 51 1 times, leaving a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 31 from 51 leaves us with 20.
Take the next digit (1) from the dividend and append it to 20, then repeat: 201 / 31

Advancing to step 3:
201 divided by 31 is 6 with a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Subtract 186 from 201 to get 15.
Fetch the next digit (7) from the dividend, attach it to 15 and continue: 157 / 31

On to step 4:
When dividing 157 by 31, we get 5 with a remainder of 2.
The next digit of our result is 5. 
Result so far: 165.0
Subtracting 155 from 157 leaves us with 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 31

On to step 5:
31 can be fit into 26 0 times, resulting in a remainder of 26.
Put 0 as the next digit of the answer. 
Result so far: 1650.0
Deduct 0 from 26 and we're left with 26.
Fetch the next digit (6) from the dividend, attach it to 26 and continue: 266 / 31

Moving on to step 6:
31 goes into 266 8 times with a remainder of 18.
Use 8 as the next digit of our solution. 
Result so far: 16508.0
The remainder is 18 after subtracting 248 from 266.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 7:
The number 31 fits into 180 5 times, leaving a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 16508.5
Deduct 155 from 180 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 8:
When dividing 250 by 31, we get 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 16508.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
31 goes into 20 0 times with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 16508.58
If we subtract 0 from 20, we get 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 10:
When dividing 200 by 31, we get 6 with a remainder of 14.
The next digit of our result is 6. 
Result so far: 16508.5806
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 11:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 16508.58064
If we take 124 away from 140, we end up 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.

Going ahead to step 12:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 16508.580645
If we take 155 away from 160, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 13:
31 goes into 50 1 times with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 16508.5806451
Deduct 31 from 50 and we're left 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.

On to step 14:
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: 16508.58064516
Subtract 186 from 190 to 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.

The final result is 16508.58064516 with a remainder of 4e-09.