We're dividing 562899 by 31 
We're looking to find how many times 31 goes into 562899.

Step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 31

Let's proceed to step 2:
56 divided by 31 is 1 with a remainder of 25.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 56 leaves us with 25.
Fetch the next digit (2) from the dividend, attach it to 25 and continue: 252 / 31

Let's proceed to step 3:
31 goes into 252 8 times with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we take 248 away from 252, we end up with 4.
Fetch the next digit (8) from the dividend, attach it to 4 and continue: 48 / 31

Going ahead to step 4:
If we divide 48 by 31, we get 1 and a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 181.0
If we take 31 away from 48, we end up with 17.
Grab the next digit (9) from the dividend, add it to 17, then carry on: 179 / 31

On to step 5:
The number 31 fits into 179 5 times, leaving a remainder of 24.
Use 5 as the next digit of our solution. 
Result so far: 1815.0
If we take 155 away from 179, we end up with 24.
Bring next digit (9) of the dividend behind the 24 and repeat the process: 249 / 31

Moving on to step 6:
The number 31 fits into 249 8 times, leaving a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 18158.0
Deduct 248 from 249 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
31 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 18158.0
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 18158.03
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 9:
31 goes into 70 2 times with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 18158.032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
When dividing 80 by 31, we get 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 18158.0322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 18158.0322 with a remainder of 0.00018.