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

On to step 1:
5 divided by 31 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 31

Advancing to step 2:
If we divide 51 by 31, we get 1 and a remainder of 20.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 20 after subtracting 31 from 51.
Include the next digit (5) from the dividend after 20, then repeat: 205 / 31

Going ahead to step 3:
The number 31 fits into 205 6 times, leaving a remainder of 19.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Deduct 186 from 205 and we're left with 19.
Append the next digit (5) from the dividend to 19 and continue with: 195 / 31

On to step 4:
If we divide 195 by 31, we get 6 and a remainder of 9.
The next digit of our result is 6. 
Result so far: 166.0
The remainder is 9 after subtracting 186 from 195.
Fetch the next digit (6) from the dividend, attach it to 9 and continue: 96 / 31

Advancing to step 5:
If we divide 96 by 31, we get 3 and a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 1663.0
The remainder is 3 after subtracting 93 from 96.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 31

Going ahead to step 6:
If we divide 36 by 31, we get 1 and a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 16631.0
If we subtract 31 from 36, 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.

Advancing to step 7:
50 divided by 31 is 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 16631.1
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 8:
If we divide 190 by 31, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 16631.16
If we subtract 186 from 190, we 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.

Step 9:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 16631.161
Deduct 31 from 40 and we're left 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.

Going ahead to step 10:
31 goes into 90 2 times with a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 16631.1612
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.

On to step 11:
When dividing 280 by 31, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 16631.16129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 12:
31 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 16631.16129
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
31 goes into 100 3 times with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 16631.1612903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 14:
If we divide 70 by 31, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 16631.16129032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 16631.16129032, with a leftover of 8e-09.