Let's divide 877816 by 45
We want to divide 877816 by 45.

Advancing to step 1:
The number 45 fits into 8 0 times, leaving a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 45

Let's proceed to step 2:
The number 45 fits into 87 1 times, leaving a remainder of 42.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 45 from 87 and we're left with 42.
Take the next digit (7) from the dividend and append it to 42, then repeat: 427 / 45

On to step 3:
427 divided by 45 is 9 with a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Subtracting 405 from 427 leaves us with 22.
Include the next digit (8) from the dividend after 22, then repeat: 228 / 45

Let's proceed to step 4:
When dividing 228 by 45, we get 5 with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 195.0
Subtract 225 from 228 to get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 45

On to step 5:
45 goes into 31 0 times with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 1950.0
Subtracting 0 from 31 leaves us with 31.
Include the next digit (6) from the dividend after 31, then repeat: 316 / 45

Advancing to step 6:
The number 45 fits into 316 7 times, leaving a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 19507.0
Deduct 315 from 316 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
When dividing 10 by 45, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 19507.0
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
The number 45 fits into 100 2 times, leaving a remainder of 10.
Record the quotient 2 as the next digit in the result. 
Result so far: 19507.02
The remainder is 10 after subtracting 90 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 9:
45 can be fit into 100 2 times, resulting in a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 19507.022
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final result is 19507.022 with a remainder of 0.001.