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

On to step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 31

Let's proceed to step 2:
The number 31 fits into 66 2 times, leaving a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 4 after subtracting 62 from 66.
Take the next digit (6) from the dividend and append it to 4, then repeat: 46 / 31

On to step 3:
If we divide 46 by 31, we get 1 and a remainder of 15.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Deduct 31 from 46 and we're left with 15.
Grab the next digit (5) from the dividend, add it to 15, then carry on: 155 / 31

Let's proceed to step 4:
31 goes into 155 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 215.0
The remainder is 0 after subtracting 155 from 155.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 31

Moving on to step 5:
8 divided by 31 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 2150.0
The remainder is 8 after subtracting 0 from 8.
Include the next digit (5) from the dividend after 8, then repeat: 85 / 31

Moving on to step 6:
When dividing 85 by 31, we get 2 with a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 21502.0
Subtracting 62 from 85 leaves us with 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 7:
The number 31 fits into 230 7 times, leaving a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 21502.7
Subtracting 217 from 230 leaves us 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.

Moving on to step 8:
31 can be fit into 130 4 times, resulting in a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 21502.74
If we take 124 away from 130, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
The number 31 fits into 60 1 times, leaving a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 21502.741
If we take 31 away from 60, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 10:
31 can be fit into 290 9 times, resulting in a remainder of 11.
The next digit of our result is 9. 
Result so far: 21502.7419
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 11:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 21502.74193
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 12:
When dividing 170 by 31, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 21502.741935
Subtracting 155 from 170 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 13:
150 divided by 31 is 4 with a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 21502.7419354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 14:
31 goes into 260 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 21502.74193548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

In conclusion, the division gives 21502.74193548 with a balance of 1.2e-08.