We divide 566317 by 31
We want to divide 566317 by 31.

Moving 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
Subtracting 0 from 5 leaves us with 5.
Take the next digit (6) from the dividend and append it to 5, then repeat: 56 / 31

Let's proceed to step 2:
If we divide 56 by 31, we get 1 and a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 31 from 56 leaves us with 25.
Fetch the next digit (6) from the dividend, attach it to 25 and continue: 256 / 31

Advancing to step 3:
31 can be fit into 256 8 times, resulting in a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtracting 248 from 256 leaves us with 8.
Include the next digit (3) from the dividend after 8, then repeat: 83 / 31

Step 4:
When dividing 83 by 31, we get 2 with a remainder of 21.
Write down 2 as next digit of the result. 
Result so far: 182.0
If we take 62 away from 83, we end up with 21.
Include the next digit (1) from the dividend after 21, then repeat: 211 / 31

Going ahead to step 5:
211 divided by 31 is 6 with a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 1826.0
If we subtract 186 from 211, we get 25.
Grab the next digit (7) from the dividend, add it to 25, then carry on: 257 / 31

Step 6:
When dividing 257 by 31, we get 8 with a remainder of 9.
Write down 8 as next digit of the result. 
Result so far: 18268.0
If we subtract 248 from 257, we get 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 7:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 18268.2
Subtracting 62 from 90 leaves us with 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 8:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 18268.29
If we subtract 279 from 280, we 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.

Let's proceed to step 9:
If we divide 10 by 31, we get 0 and a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 18268.29
If we subtract 0 from 10, we 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.

Moving on to step 10:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 18268.2903
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.

Step 11:
If we divide 70 by 31, we get 2 and a remainder of 8.
The next digit of our result is 2. 
Result so far: 18268.29032
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.

Step 12:
31 goes into 80 2 times with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 18268.290322
Subtract 62 from 80 to 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 18268.290322 with a remainder of 1.8e-06.