We look at the division of 18289 by 40 
We want to figure out the number of times 18289 can be divided by 40.

Let's proceed to step 1:
When dividing 1 by 40, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 40

Step 2:
If we divide 18 by 40, we get 0 and a remainder of 18.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Include the next digit (2) from the dividend after 18, then repeat: 182 / 40

Moving on to step 3:
When dividing 182 by 40, we get 4 with a remainder of 22.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 160 from 182 to get 22.
Grab the next digit (8) from the dividend, add it to 22, then carry on: 228 / 40

Going ahead to step 4:
228 divided by 40 is 5 with a remainder of 28.
Put 5 as the next digit of the answer. 
Result so far: 45.0
Deduct 200 from 228 and we're left with 28.
Append the next digit (9) from the dividend to 28 and continue with: 289 / 40

Going ahead to step 5:
40 goes into 289 7 times with a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 457.0
If we subtract 280 from 289, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 6:
40 goes into 90 2 times with a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 457.2
The remainder is 10 after subtracting 80 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 7:
40 goes into 100 2 times with a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 457.22
Subtract 80 from 100 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.

The quotient of the division is 457.22, and the remainder is 0.02.