We look at the division of 596399 by 31 
We're looking to find how many times 31 goes into 596399.

Advancing 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
Deduct 0 from 5 and we're left with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 31

Let's proceed to step 2:
The number 31 fits into 59 1 times, leaving a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 31 from 59, we get 28.
Append the next digit (6) from the dividend to 28 and continue with: 286 / 31

Step 3:
The number 31 fits into 286 9 times, leaving a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Deduct 279 from 286 and we're left with 7.
Bring next digit (3) of the dividend behind the 7 and repeat the process: 73 / 31

Advancing to step 4:
31 can be fit into 73 2 times, resulting in a remainder of 11.
The number 2 becomes the next digit in our result. 
Result so far: 192.0
If we take 62 away from 73, we end up with 11.
Grab the next digit (9) from the dividend, add it to 11, then carry on: 119 / 31

Step 5:
When dividing 119 by 31, we get 3 with a remainder of 26.
Write down 3 as next digit of the result. 
Result so far: 1923.0
Subtract 93 from 119 to get 26.
Include the next digit (9) from the dividend after 26, then repeat: 269 / 31

Moving on to step 6:
269 divided by 31 is 8 with a remainder of 21.
Write down 8 as next digit of the result. 
Result so far: 19238.0
If we take 248 away from 269, we end up 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.

Step 7:
When dividing 210 by 31, we get 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 19238.6
If we take 186 away from 210, we end up 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.

Let's proceed to step 8:
240 divided by 31 is 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 19238.67
The remainder is 23 after subtracting 217 from 240.
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 9:
If we divide 230 by 31, we get 7 and a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 19238.677
The remainder is 13 after subtracting 217 from 230.
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 19238.677, and the remainder is 0.0013.