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

Going ahead to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Let's proceed to step 2:
51 divided by 31 is 1 with a remainder of 20.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 51, we get 20.
Grab the next digit (1) from the dividend, add it to 20, then carry on: 201 / 31

Let's proceed to step 3:
31 goes into 201 6 times with a remainder of 15.
Write down 6 as next digit of the result. 
Result so far: 16.0
Deduct 186 from 201 and we're left with 15.
Append the next digit (6) from the dividend to 15 and continue with: 156 / 31

Moving on to step 4:
156 divided by 31 is 5 with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 165.0
Subtracting 155 from 156 leaves us with 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 31

Advancing to step 5:
The number 31 fits into 13 0 times, leaving a remainder of 13.
Put 0 as the next digit of the answer. 
Result so far: 1650.0
If we take 0 away from 13, we end up with 13.
Include the next digit (0) from the dividend after 13, then repeat: 130 / 31

Step 6:
If we divide 130 by 31, we get 4 and a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 16504.0
If we take 124 away from 130, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 16504.1
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 8:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 16504.19
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 9:
110 divided by 31 is 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 16504.193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 10:
When dividing 170 by 31, we get 5 with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 16504.1935
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 11:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 16504.19354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 12:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 16504.193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 13:
The number 31 fits into 120 3 times, leaving a remainder of 27.
The next digit of our result is 3. 
Result so far: 16504.1935483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 14:
The number 31 fits into 270 8 times, leaving a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 16504.19354838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

After the division, we end up with 16504.19354838 and a remainder of 2.2e-08.