We divide 58502 by 31
We want to figure out the number of times 58502 can be divided by 31.

Advancing to step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 31

Step 2:
58 divided by 31 is 1 with a remainder of 27.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 31 away from 58, we end up with 27.
Take the next digit (5) from the dividend and append it to 27, then repeat: 275 / 31

On to step 3:
31 can be fit into 275 8 times, resulting in a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 18.0
If we take 248 away from 275, we end up with 27.
Bring next digit (0) of the dividend behind the 27 and repeat the process: 270 / 31

On to step 4:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 188.0
If we take 248 away from 270, we end up with 22.
Grab the next digit (2) from the dividend, add it to 22, then carry on: 222 / 31

Advancing to step 5:
If we divide 222 by 31, we get 7 and a remainder of 5.
Put 7 as the next digit of the answer. 
Result so far: 1887.0
Deduct 217 from 222 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 6:
When dividing 50 by 31, we get 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1887.1
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 7:
190 divided by 31 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 1887.16
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 1887.161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 9:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 1887.1612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 10:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 1887.16129
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.

Let's proceed to step 11:
If we divide 10 by 31, we get 0 and a remainder of 10.
The next digit of our result is 0. 
Result so far: 1887.16129
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 12:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 1887.1612903
Deduct 93 from 100 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 13:
31 goes into 70 2 times with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 1887.16129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 1887.16129032, and the remainder is 8e-09.