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

Advancing to 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 (7) from the dividend to 8 and continue with: 87 / 45

Step 2:
45 goes into 87 1 times with a remainder of 42.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 45 from 87 to get 42.
Append the next digit (2) from the dividend to 42 and continue with: 422 / 45

Let's proceed to step 3:
If we divide 422 by 45, we get 9 and a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 19.0
Deduct 405 from 422 and we're left with 17.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 45

Moving on to step 4:
45 goes into 179 3 times with a remainder of 44.
Use 3 as the next digit of our solution. 
Result so far: 193.0
Subtract 135 from 179 to get 44.
Append the next digit (4) from the dividend to 44 and continue with: 444 / 45

On to step 5:
444 divided by 45 is 9 with a remainder of 39.
The number 9 becomes the next digit in our result. 
Result so far: 1939.0
Subtract 405 from 444 to get 39.
Bring next digit (2) of the dividend behind the 39 and repeat the process: 392 / 45

On to step 6:
45 can be fit into 392 8 times, resulting in a remainder of 32.
Use 8 as the next digit of our solution. 
Result so far: 19398.0
The remainder is 32 after subtracting 360 from 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 7:
If we divide 320 by 45, we get 7 and a remainder of 5.
The next digit of our result is 7. 
Result so far: 19398.7
The remainder is 5 after subtracting 315 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 8:
If we divide 50 by 45, we get 1 and a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 19398.71
If we subtract 45 from 50, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 9:
45 can be fit into 50 1 times, resulting in a remainder of 5.
The next digit of our result is 1. 
Result so far: 19398.711
Subtract 45 from 50 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

After the division, we end up with 19398.711 and a remainder of 0.0005.