Let's divide 884871 by 40
Let's see how many times 40 fits into 884871.

Step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Grab the next digit (8) from the dividend, add it to 8, then carry on: 88 / 40

Going ahead to step 2:
When dividing 88 by 40, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 80 from 88 to get 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 40

On to step 3:
The number 40 fits into 84 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 22.0
Subtracting 80 from 84 leaves us with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 40

On to step 4:
When dividing 48 by 40, we get 1 with a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 221.0
Deduct 40 from 48 and we're left with 8.
Grab the next digit (7) from the dividend, add it to 8, then carry on: 87 / 40

On to step 5:
87 divided by 40 is 2 with a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 2212.0
Deduct 80 from 87 and we're left with 7.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 40

Let's proceed to step 6:
The number 40 fits into 71 1 times, leaving a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 22121.0
Deduct 40 from 71 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 7:
40 can be fit into 310 7 times, resulting in a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 22121.7
If we take 280 away from 310, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
300 divided by 40 is 7 with a remainder of 20.
The next digit of our result is 7. 
Result so far: 22121.77
Subtract 280 from 300 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.

Our division results in 22121.77 with a remaining 0.02.