We divide 40081321 by 877
We're looking to find how many times 877 goes into 40081321.

Moving on to step 1:
When dividing 4 by 877, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 877

Step 2:
If we divide 40 by 877, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Append the next digit (0) from the dividend to 40 and continue with: 400 / 877

Let's proceed to step 3:
877 goes into 400 0 times with a remainder of 400.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 400 after subtracting 0 from 400.
Include the next digit (8) from the dividend after 400, then repeat: 4008 / 877

Advancing to step 4:
4008 divided by 877 is 4 with a remainder of 500.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 3508 from 4008 leaves us with 500.
Take the next digit (1) from the dividend and append it to 500, then repeat: 5001 / 877

Going ahead to step 5:
If we divide 5001 by 877, we get 5 and a remainder of 616.
The next digit of our result is 5. 
Result so far: 45.0
If we subtract 4385 from 5001, we get 616.
Bring next digit (3) of the dividend behind the 616 and repeat the process: 6163 / 877

Step 6:
6163 divided by 877 is 7 with a remainder of 24.
Record the quotient 7 as the next digit in the result. 
Result so far: 457.0
Subtracting 6139 from 6163 leaves us with 24.
Grab the next digit (2) from the dividend, add it to 24, then carry on: 242 / 877

Going ahead to step 7:
The number 877 fits into 242 0 times, leaving a remainder of 242.
The number 0 becomes the next digit in our result. 
Result so far: 4570.0
If we subtract 0 from 242, we get 242.
Append the next digit (1) from the dividend to 242 and continue with: 2421 / 877

Let's proceed to step 8:
The number 877 fits into 2421 2 times, leaving a remainder of 667.
Use 2 as the next digit of our solution. 
Result so far: 45702.0
If we take 1754 away from 2421, we end up with 667.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6670, and continue the process.

Advancing to step 9:
If we divide 6670 by 877, we get 7 and a remainder of 531.
Put 7 as the next digit of the answer. 
Result so far: 45702.7
If we subtract 6139 from 6670, we get 531.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5310, and continue the process.

Advancing to step 10:
877 can be fit into 5310 6 times, resulting in a remainder of 48.
Write down 6 as next digit of the result. 
Result so far: 45702.76
The remainder is 48 after subtracting 5262 from 5310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Step 11:
877 goes into 480 0 times with a remainder of 480.
The next digit of our result is 0. 
Result so far: 45702.76
If we take 0 away from 480, we end up with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Let's proceed to step 12:
When dividing 4800 by 877, we get 5 with a remainder of 415.
Record the quotient 5 as the next digit in the result. 
Result so far: 45702.7605
The remainder is 415 after subtracting 4385 from 4800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4150, and continue the process.

On to step 13:
877 can be fit into 4150 4 times, resulting in a remainder of 642.
The number 4 becomes the next digit in our result. 
Result so far: 45702.76054
Deduct 3508 from 4150 and we're left with 642.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6420, and continue the process.

Moving on to step 14:
877 goes into 6420 7 times with a remainder of 281.
Write down 7 as next digit of the result. 
Result so far: 45702.760547
Deduct 6139 from 6420 and we're left with 281.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2810, and continue the process.

Moving on to step 15:
877 goes into 2810 3 times with a remainder of 179.
Put 3 as the next digit of the answer. 
Result so far: 45702.7605473
Subtract 2631 from 2810 to get 179.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1790, and continue the process.

Step 16:
877 can be fit into 1790 2 times, resulting in a remainder of 36.
The next digit of our result is 2. 
Result so far: 45702.76054732
Subtracting 1754 from 1790 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

The final result is 45702.76054732 with a remainder of 3.6e-08.