Let's divide 596502 by 31
We want to figure out the number of times 596502 can be divided by 31.

Going ahead to step 1:
31 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 31

On to step 2:
If we divide 59 by 31, we get 1 and 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.
Append the next digit (6) from the dividend to 28 and continue with: 286 / 31

Moving on to step 3:
When dividing 286 by 31, we get 9 with a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Subtracting 279 from 286 leaves us with 7.
Fetch the next digit (5) from the dividend, attach it to 7 and continue: 75 / 31

Let's proceed to step 4:
75 divided by 31 is 2 with a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 192.0
The remainder is 13 after subtracting 62 from 75.
Grab the next digit (0) from the dividend, add it to 13, then carry on: 130 / 31

Step 5:
The number 31 fits into 130 4 times, leaving a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 1924.0
The remainder is 6 after subtracting 124 from 130.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 31

On to step 6:
If we divide 62 by 31, we get 2 and a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 19242.0
Subtracting 62 from 62 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
When dividing 0 by 31, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19242.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
0 divided by 31 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19242.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 19242.0, and the remainder is 0.0.