We're dividing 557583 by 31 
Let's see how many times 31 fits into 557583.

Moving on 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
Subtract 0 from 5 to get 5.
Grab the next digit (5) from the dividend, add it to 5, then carry on: 55 / 31

Going ahead to step 2:
31 goes into 55 1 times with a remainder of 24.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 55 leaves us with 24.
Grab the next digit (7) from the dividend, add it to 24, then carry on: 247 / 31

On to step 3:
If we divide 247 by 31, we get 7 and a remainder of 30.
The next digit of our result is 7. 
Result so far: 17.0
Subtract 217 from 247 to get 30.
Grab the next digit (5) from the dividend, add it to 30, then carry on: 305 / 31

Moving on to step 4:
The number 31 fits into 305 9 times, leaving a remainder of 26.
The number 9 becomes the next digit in our result. 
Result so far: 179.0
The remainder is 26 after subtracting 279 from 305.
Append the next digit (8) from the dividend to 26 and continue with: 268 / 31

Going ahead to step 5:
268 divided by 31 is 8 with a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 1798.0
Subtracting 248 from 268 leaves us with 20.
Include the next digit (3) from the dividend after 20, then repeat: 203 / 31

Moving on to step 6:
31 can be fit into 203 6 times, resulting in a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 17986.0
The remainder is 17 after subtracting 186 from 203.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 7:
170 divided by 31 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 17986.5
Deduct 155 from 170 and we're left 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 8:
When dividing 150 by 31, we get 4 with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 17986.54
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.

Let's proceed to step 9:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The next digit of our result is 8. 
Result so far: 17986.548
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.

Let's proceed to step 10:
The number 31 fits into 120 3 times, leaving a remainder of 27.
The next digit of our result is 3. 
Result so far: 17986.5483
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.

On to step 11:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 17986.54838
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.

Moving on to step 12:
31 goes into 220 7 times with a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 17986.548387
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 17986.548387
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 14:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 17986.54838709
Deduct 279 from 300 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

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