We look at the division of 180587 by 45 
We want to divide 180587 by 45.

Advancing to step 1:
If we divide 1 by 45, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 45

Step 2:
If we divide 18 by 45, we get 0 and a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Take the next digit (0) from the dividend and append it to 18, then repeat: 180 / 45

Step 3:
180 divided by 45 is 4 with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 180 from 180 and we're left with 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 45

Advancing to step 4:
The number 45 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 40.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 45

Step 5:
45 can be fit into 58 1 times, resulting in a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 401.0
Subtract 45 from 58 to get 13.
Fetch the next digit (7) from the dividend, attach it to 13 and continue: 137 / 45

Moving on to step 6:
137 divided by 45 is 3 with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 4013.0
The remainder is 2 after subtracting 135 from 137.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
45 can be fit into 20 0 times, resulting in a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 4013.0
Subtract 0 from 20 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.

Let's proceed to step 8:
45 can be fit into 200 4 times, resulting in a remainder of 20.
The next digit of our result is 4. 
Result so far: 4013.04
If we take 180 away from 200, we end up 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.

Let's proceed to step 9:
45 goes into 200 4 times with a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 4013.044
Subtract 180 from 200 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 4013.044, and the remainder is 0.002.