580657 ÷ 31 
We want to figure out the number of times 580657 can be divided by 31.

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 31

Advancing to step 2:
The number 31 fits into 58 1 times, leaving a remainder of 27.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 31 from 58 to get 27.
Take the next digit (0) from the dividend and append it to 27, then repeat: 270 / 31

Advancing to step 3:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Deduct 248 from 270 and we're left with 22.
Bring next digit (6) of the dividend behind the 22 and repeat the process: 226 / 31

On to step 4:
226 divided by 31 is 7 with a remainder of 9.
Put 7 as the next digit of the answer. 
Result so far: 187.0
If we subtract 217 from 226, we get 9.
Take the next digit (5) from the dividend and append it to 9, then repeat: 95 / 31

Moving on to step 5:
31 can be fit into 95 3 times, resulting in a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 1873.0
Deduct 93 from 95 and we're left with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 31

Going ahead to step 6:
31 can be fit into 27 0 times, resulting in a remainder of 27.
Use 0 as the next digit of our solution. 
Result so far: 18730.0
If we take 0 away from 27, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
270 divided by 31 is 8 with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 18730.8
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 8:
When dividing 220 by 31, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 18730.87
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 9:
When dividing 30 by 31, we get 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 18730.87
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 18730.8709
Deduct 279 from 300 and we're left 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.

Advancing to step 11:
210 divided by 31 is 6 with a remainder of 24.
The next digit of our result is 6. 
Result so far: 18730.87096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 12:
When dividing 240 by 31, we get 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 18730.870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 13:
230 divided by 31 is 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 18730.8709677
If we take 217 away from 230, we end up 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.

After the division, we end up with 18730.8709677 and a remainder of 1.3e-07.