506676 ÷ 31 
We want to divide 506676 by 31.

Let's proceed to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 31

Step 2:
50 divided by 31 is 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 31 from 50 and we're left with 19.
Grab the next digit (6) from the dividend, add it to 19, then carry on: 196 / 31

Advancing to step 3:
If we divide 196 by 31, we get 6 and a remainder of 10.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
The remainder is 10 after subtracting 186 from 196.
Include the next digit (6) from the dividend after 10, then repeat: 106 / 31

Step 4:
106 divided by 31 is 3 with a remainder of 13.
The next digit of our result is 3. 
Result so far: 163.0
If we take 93 away from 106, we end up with 13.
Fetch the next digit (7) from the dividend, attach it to 13 and continue: 137 / 31

Going ahead to step 5:
31 goes into 137 4 times with a remainder of 13.
The number 4 becomes the next digit in our result. 
Result so far: 1634.0
Subtract 124 from 137 to get 13.
Fetch the next digit (6) from the dividend, attach it to 13 and continue: 136 / 31

Let's proceed to step 6:
136 divided by 31 is 4 with a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 16344.0
If we take 124 away from 136, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 7:
If we divide 120 by 31, we get 3 and a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 16344.3
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 8:
270 divided by 31 is 8 with a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 16344.38
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 9:
220 divided by 31 is 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 16344.387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 10:
When dividing 30 by 31, we get 0 with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 16344.387
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 11:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 16344.38709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 12:
31 goes into 210 6 times with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 16344.387096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 13:
The number 31 fits into 240 7 times, leaving a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 16344.3870967
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 14:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 16344.38709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 16344.38709677, with a leftover of 1.3e-08.