Let's divide 80870 by 40
Our goal is to divide 80870 by 40.

On to step 1:
8 divided by 40 is 0 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.
Include the next digit (0) from the dividend after 8, then repeat: 80 / 40

Let's proceed to step 2:
40 can be fit into 80 2 times, resulting in a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 80 away from 80, we end up with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 40

Moving on to step 3:
8 divided by 40 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
Subtract 0 from 8 to get 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 40

Step 4:
40 can be fit into 87 2 times, resulting in a remainder of 7.
The number 2 becomes the next digit in our result. 
Result so far: 202.0
Subtract 80 from 87 to get 7.
Take the next digit (0) from the dividend and append it to 7, then repeat: 70 / 40

Step 5:
70 divided by 40 is 1 with a remainder of 30.
Record the quotient 1 as the next digit in the result. 
Result so far: 2021.0
If we take 40 away from 70, 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.

Moving on to step 6:
If we divide 300 by 40, we get 7 and a remainder of 20.
The next digit of our result is 7. 
Result so far: 2021.7
If we subtract 280 from 300, we 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.

On to step 7:
When dividing 200 by 40, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 2021.75
Subtracting 200 from 200 leaves us 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.

Advancing to step 8:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 2021.75
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 2021.75
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.

The quotient of the division is 2021.75, and the remainder is 0.0.