We look at the division of 585007 by 40 
Our goal is to divide 585007 by 40.

Advancing to step 1:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 40

Moving on to step 2:
40 goes into 58 1 times with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 58 and we're left with 18.
Include the next digit (5) from the dividend after 18, then repeat: 185 / 40

Advancing to step 3:
When dividing 185 by 40, we get 4 with a remainder of 25.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Deduct 160 from 185 and we're left with 25.
Append the next digit (0) from the dividend to 25 and continue with: 250 / 40

Step 4:
If we divide 250 by 40, we get 6 and a remainder of 10.
Record the quotient 6 as the next digit in the result. 
Result so far: 146.0
If we take 240 away from 250, we end up with 10.
Take the next digit (0) from the dividend and append it to 10, then repeat: 100 / 40

On to step 5:
100 divided by 40 is 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 1462.0
The remainder is 20 after subtracting 80 from 100.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 40

Moving on to step 6:
If we divide 207 by 40, we get 5 and a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 14625.0
Subtract 200 from 207 to get 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 7:
70 divided by 40 is 1 with a remainder of 30.
Write down 1 as next digit of the result. 
Result so far: 14625.1
Deduct 40 from 70 and we're left with 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 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
The next digit of our result is 7. 
Result so far: 14625.17
Subtract 280 from 300 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 14625.175
Subtracting 200 from 200 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.

Moving on to step 10:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 14625.175
Subtract 0 from 0 to 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.

Step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14625.175
The remainder is 0 after subtracting 0 from 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 14625.175, and the remainder is 0.0.