We're dividing 564935 by 31 
We want to divide 564935 by 31.

Step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (6) of the dividend behind the 5 and repeat the process: 56 / 31

Advancing to step 2:
If we divide 56 by 31, we get 1 and a remainder of 25.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 31 away from 56, we end up with 25.
Fetch the next digit (4) from the dividend, attach it to 25 and continue: 254 / 31

On to step 3:
31 can be fit into 254 8 times, resulting in a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtract 248 from 254 to get 6.
Grab the next digit (9) from the dividend, add it to 6, then carry on: 69 / 31

On to step 4:
If we divide 69 by 31, we get 2 and a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 182.0
If we take 62 away from 69, we end up with 7.
Fetch the next digit (3) from the dividend, attach it to 7 and continue: 73 / 31

Moving on to step 5:
73 divided by 31 is 2 with a remainder of 11.
The next digit of our result is 2. 
Result so far: 1822.0
If we take 62 away from 73, we end up with 11.
Include the next digit (5) from the dividend after 11, then repeat: 115 / 31

Moving on to step 6:
The number 31 fits into 115 3 times, leaving a remainder of 22.
Record the quotient 3 as the next digit in the result. 
Result so far: 18223.0
The remainder is 22 after subtracting 93 from 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
220 divided by 31 is 7 with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 18223.7
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 8:
31 goes into 30 0 times with a remainder of 30.
The next digit of our result is 0. 
Result so far: 18223.7
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 9:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 18223.709
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.

Let's proceed to step 10:
When dividing 210 by 31, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 18223.7096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 11:
When dividing 240 by 31, we get 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 18223.70967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 12:
If we divide 230 by 31, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 18223.709677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 18223.709677, and the remainder is 1.3e-06.