18582 ÷ 40 
We want to divide 18582 by 40.

Moving on to step 1:
The number 40 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 40

Step 2:
40 goes into 18 0 times with a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 18 after subtracting 0 from 18.
Grab the next digit (5) from the dividend, add it to 18, then carry on: 185 / 40

Moving on to step 3:
40 goes into 185 4 times with a remainder of 25.
The next digit of our result is 4. 
Result so far: 4.0
The remainder is 25 after subtracting 160 from 185.
Bring next digit (8) of the dividend behind the 25 and repeat the process: 258 / 40

On to step 4:
40 can be fit into 258 6 times, resulting in a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 46.0
If we subtract 240 from 258, we get 18.
Grab the next digit (2) from the dividend, add it to 18, then carry on: 182 / 40

Going ahead to step 5:
If we divide 182 by 40, we get 4 and a remainder of 22.
The number 4 becomes the next digit in our result. 
Result so far: 464.0
Deduct 160 from 182 and we're left 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.

Advancing to step 6:
The number 40 fits into 220 5 times, leaving a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 464.5
Deduct 200 from 220 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.

Going ahead to step 7:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 464.55
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.

The quotient of the division is 464.55, and the remainder is 0.0.