We look at the division of 874791 by 45 
Our goal is to divide 874791 by 45.

On to step 1:
45 goes into 8 0 times with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 45

Going ahead to step 2:
87 divided by 45 is 1 with a remainder of 42.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 45 from 87, we get 42.
Include the next digit (4) from the dividend after 42, then repeat: 424 / 45

Let's proceed to step 3:
424 divided by 45 is 9 with a remainder of 19.
Use 9 as the next digit of our solution. 
Result so far: 19.0
If we take 405 away from 424, we end up with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 45

Advancing to step 4:
The number 45 fits into 197 4 times, leaving a remainder of 17.
Write down 4 as next digit of the result. 
Result so far: 194.0
If we subtract 180 from 197, we get 17.
Grab the next digit (9) from the dividend, add it to 17, then carry on: 179 / 45

On to step 5:
45 goes into 179 3 times with a remainder of 44.
The number 3 becomes the next digit in our result. 
Result so far: 1943.0
The remainder is 44 after subtracting 135 from 179.
Fetch the next digit (1) from the dividend, attach it to 44 and continue: 441 / 45

Let's proceed to step 6:
45 can be fit into 441 9 times, resulting in a remainder of 36.
Use 9 as the next digit of our solution. 
Result so far: 19439.0
Subtracting 405 from 441 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 7:
45 can be fit into 360 8 times, resulting in a remainder of 0.
The next digit of our result is 8. 
Result so far: 19439.8
The remainder is 0 after subtracting 360 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
If we divide 0 by 45, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19439.8
Deduct 0 from 0 and we're left 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.

Going ahead to step 9:
When dividing 0 by 45, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19439.8
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.

After the division, we end up with 19439.8 and a remainder of 0.0.