We're dividing 596406 by 31 
We want to figure out the number of times 596406 can be divided by 31.

Step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 31

Moving on to step 2:
If we divide 59 by 31, we get 1 and a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 31 from 59 to get 28.
Take the next digit (6) from the dividend and append it to 28, then repeat: 286 / 31

Going ahead to step 3:
31 can be fit into 286 9 times, resulting in a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Deduct 279 from 286 and we're left with 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 31

Advancing to step 4:
74 divided by 31 is 2 with a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 192.0
The remainder is 12 after subtracting 62 from 74.
Include the next digit (0) from the dividend after 12, then repeat: 120 / 31

On to step 5:
When dividing 120 by 31, we get 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 1923.0
Subtracting 93 from 120 leaves us with 27.
Append the next digit (6) from the dividend to 27 and continue with: 276 / 31

On to step 6:
The number 31 fits into 276 8 times, leaving a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 19238.0
Subtract 248 from 276 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 7:
If we divide 280 by 31, we get 9 and a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 19238.9
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
31 goes into 10 0 times with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 19238.9
Subtracting 0 from 10 leaves us with 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 9:
When dividing 100 by 31, we get 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 19238.903
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 10:
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: 19238.9032
If we take 62 away from 70, we end up 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.

Going ahead to step 11:
80 divided by 31 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 19238.90322
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.

Our division results in 19238.90322 with a remaining 1.8e-05.