We look at the division of 857877 by 40 
We're looking to find how many times 40 goes into 857877.

Step 1:
40 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Take the next digit (5) from the dividend and append it to 8, then repeat: 85 / 40

Let's proceed to step 2:
85 divided by 40 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 80 away from 85, we end up with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 40

Going ahead to step 3:
57 divided by 40 is 1 with a remainder of 17.
Use 1 as the next digit of our solution. 
Result so far: 21.0
If we subtract 40 from 57, we get 17.
Include the next digit (8) from the dividend after 17, then repeat: 178 / 40

Step 4:
40 can be fit into 178 4 times, resulting in a remainder of 18.
Put 4 as the next digit of the answer. 
Result so far: 214.0
Subtracting 160 from 178 leaves us with 18.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 40

Let's proceed to step 5:
40 goes into 187 4 times with a remainder of 27.
Record the quotient 4 as the next digit in the result. 
Result so far: 2144.0
Deduct 160 from 187 and we're left with 27.
Take the next digit (7) from the dividend and append it to 27, then repeat: 277 / 40

Advancing to step 6:
The number 40 fits into 277 6 times, leaving a remainder of 37.
Use 6 as the next digit of our solution. 
Result so far: 21446.0
Subtracting 240 from 277 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 7:
When dividing 370 by 40, we get 9 with a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 21446.9
If we subtract 360 from 370, we 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.

Advancing to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 21446.92
Subtract 80 from 100 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.

Advancing to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 21446.925
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.

On to step 10:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21446.925
Subtracting 0 from 0 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.

Let's proceed to step 11:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 21446.925
Subtracting 0 from 0 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.

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