We divide 11585 by 40
We want to figure out the number of times 11585 can be divided by 40.

Advancing to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 40

Step 2:
40 can be fit into 11 0 times, resulting in a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 11, we get 11.
Fetch the next digit (5) from the dividend, attach it to 11 and continue: 115 / 40

Advancing to step 3:
40 can be fit into 115 2 times, resulting in a remainder of 35.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 80 from 115 and we're left with 35.
Grab the next digit (8) from the dividend, add it to 35, then carry on: 358 / 40

Step 4:
The number 40 fits into 358 8 times, leaving a remainder of 38.
Record the quotient 8 as the next digit in the result. 
Result so far: 28.0
The remainder is 38 after subtracting 320 from 358.
Include the next digit (5) from the dividend after 38, then repeat: 385 / 40

On to step 5:
385 divided by 40 is 9 with a remainder of 25.
Record the quotient 9 as the next digit in the result. 
Result so far: 289.0
If we take 360 away from 385, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 6:
If we divide 250 by 40, we get 6 and a remainder of 10.
The next digit of our result is 6. 
Result so far: 289.6
The remainder is 10 after subtracting 240 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 7:
40 goes into 100 2 times with a remainder of 20.
The next digit of our result is 2. 
Result so far: 289.62
Deduct 80 from 100 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 289.625
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 289.625
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 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 289.625
Subtracting 0 from 0 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.

The final result is 289.625 with a remainder of 0.0.