We look at the division of 594717 by 31 
We want to divide 594717 by 31.

Let's proceed 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
If we subtract 0 from 5, we get 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 31

Let's proceed to step 2:
The number 31 fits into 59 1 times, leaving a remainder of 28.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 31 from 59 and we're left with 28.
Fetch the next digit (4) from the dividend, attach it to 28 and continue: 284 / 31

On to step 3:
31 can be fit into 284 9 times, resulting in a remainder of 5.
The next digit of our result is 9. 
Result so far: 19.0
The remainder is 5 after subtracting 279 from 284.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 31

Advancing to step 4:
57 divided by 31 is 1 with a remainder of 26.
The next digit of our result is 1. 
Result so far: 191.0
Subtract 31 from 57 to get 26.
Bring next digit (1) of the dividend behind the 26 and repeat the process: 261 / 31

Step 5:
The number 31 fits into 261 8 times, leaving a remainder of 13.
Write down 8 as next digit of the result. 
Result so far: 1918.0
The remainder is 13 after subtracting 248 from 261.
Take the next digit (7) from the dividend and append it to 13, then repeat: 137 / 31

Step 6:
The number 31 fits into 137 4 times, leaving a remainder of 13.
Record the quotient 4 as the next digit in the result. 
Result so far: 19184.0
Deduct 124 from 137 and we're left 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.

Advancing to step 7:
The number 31 fits into 130 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 19184.4
The remainder is 6 after subtracting 124 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
31 can be fit into 60 1 times, resulting in a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 19184.41
The remainder is 29 after subtracting 31 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 9:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 19184.419
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 10:
31 goes into 110 3 times with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 19184.4193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 11:
31 goes into 170 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 19184.41935
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.

Going ahead to step 12:
31 can be fit into 150 4 times, resulting in a remainder of 26.
The next digit of our result is 4. 
Result so far: 19184.419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 13:
If we divide 260 by 31, we get 8 and a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 19184.4193548
Subtract 248 from 260 to 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.

Moving on to step 14:
31 goes into 120 3 times with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 19184.41935483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The final outcome is 19184.41935483, with a leftover of 2.7e-08.