Let's divide 506883 by 31
We want to divide 506883 by 31.

On to step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 31

Going ahead to step 2:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 31 from 50 to get 19.
Bring next digit (6) of the dividend behind the 19 and repeat the process: 196 / 31

Advancing to step 3:
196 divided by 31 is 6 with a remainder of 10.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtracting 186 from 196 leaves us with 10.
Bring next digit (8) of the dividend behind the 10 and repeat the process: 108 / 31

Going ahead to step 4:
The number 31 fits into 108 3 times, leaving a remainder of 15.
Write down 3 as next digit of the result. 
Result so far: 163.0
Subtract 93 from 108 to get 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 31

Step 5:
The number 31 fits into 158 5 times, leaving a remainder of 3.
The next digit of our result is 5. 
Result so far: 1635.0
Deduct 155 from 158 and we're left with 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 31

Going ahead to step 6:
31 can be fit into 33 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 16351.0
Subtract 31 from 33 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.

Moving on to step 7:
20 divided by 31 is 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 16351.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
When dividing 200 by 31, we get 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 16351.06
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 9:
140 divided by 31 is 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 16351.064
Subtract 124 from 140 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 10:
160 divided by 31 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 16351.0645
The remainder is 5 after subtracting 155 from 160.
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 11:
50 divided by 31 is 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 16351.06451
If we subtract 31 from 50, we get 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 12:
31 goes into 190 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16351.064516
If we take 186 away from 190, we end up 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.

Going ahead to step 13:
When dividing 40 by 31, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 16351.0645161
Subtracting 31 from 40 leaves us with 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 14:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 16351.06451612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final result is 16351.06451612 with a remainder of 2.8e-08.