842487 ÷ 45 
Let's see how many times 45 fits into 842487.

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

Moving on to step 2:
The number 45 fits into 84 1 times, leaving a remainder of 39.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 45 from 84 leaves us with 39.
Fetch the next digit (2) from the dividend, attach it to 39 and continue: 392 / 45

Going ahead to step 3:
45 can be fit into 392 8 times, resulting in a remainder of 32.
The next digit of our result is 8. 
Result so far: 18.0
If we subtract 360 from 392, we get 32.
Take the next digit (4) from the dividend and append it to 32, then repeat: 324 / 45

Advancing to step 4:
45 can be fit into 324 7 times, resulting in a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 187.0
The remainder is 9 after subtracting 315 from 324.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 45

Advancing to step 5:
The number 45 fits into 98 2 times, leaving a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 1872.0
Subtracting 90 from 98 leaves us with 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 45

Let's proceed to step 6:
45 goes into 87 1 times with a remainder of 42.
The number 1 becomes the next digit in our result. 
Result so far: 18721.0
The remainder is 42 after subtracting 45 from 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 7:
When dividing 420 by 45, we get 9 with a remainder of 15.
Record the quotient 9 as the next digit in the result. 
Result so far: 18721.9
Subtracting 405 from 420 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 8:
When dividing 150 by 45, we get 3 with a remainder of 15.
Write down 3 as next digit of the result. 
Result so far: 18721.93
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 9:
45 goes into 150 3 times with a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 18721.933
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The quotient of the division is 18721.933, and the remainder is 0.0015.