584086 ÷ 40 
We're looking to find how many times 40 goes into 584086.

Advancing to step 1:
40 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 40

On to step 2:
40 can be fit into 58 1 times, resulting in a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 40 away from 58, we end up with 18.
Append the next digit (4) from the dividend to 18 and continue with: 184 / 40

Moving on to step 3:
The number 40 fits into 184 4 times, leaving a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 14.0
If we take 160 away from 184, we end up with 24.
Fetch the next digit (0) from the dividend, attach it to 24 and continue: 240 / 40

Moving on to step 4:
When dividing 240 by 40, we get 6 with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 146.0
Deduct 240 from 240 and we're left with 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 40

On to step 5:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 1460.0
If we subtract 0 from 8, we get 8.
Bring next digit (6) of the dividend behind the 8 and repeat the process: 86 / 40

On to step 6:
The number 40 fits into 86 2 times, leaving a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 14602.0
Subtracting 80 from 86 leaves us 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.

Moving on to step 7:
When dividing 60 by 40, we get 1 with a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 14602.1
Subtracting 40 from 60 leaves us 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.

On to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14602.15
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 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14602.15
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.

Let's proceed to step 10:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 14602.15
If we take 0 away from 0, we end up 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.

Our division results in 14602.15 with a remaining 0.0.