40987430 ÷ 776 
We want to divide 40987430 by 776.

Let's proceed to step 1:
776 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 776

Step 2:
40 divided by 776 is 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (9) from the dividend, add it to 40, then carry on: 409 / 776

Moving on to step 3:
If we divide 409 by 776, we get 0 and a remainder of 409.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 409 leaves us with 409.
Append the next digit (8) from the dividend to 409 and continue with: 4098 / 776

Step 4:
When dividing 4098 by 776, we get 5 with a remainder of 218.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 3880 from 4098 leaves us with 218.
Grab the next digit (7) from the dividend, add it to 218, then carry on: 2187 / 776

Let's proceed to step 5:
If we divide 2187 by 776, we get 2 and a remainder of 635.
Use 2 as the next digit of our solution. 
Result so far: 52.0
If we take 1552 away from 2187, we end up with 635.
Include the next digit (4) from the dividend after 635, then repeat: 6354 / 776

Moving on to step 6:
When dividing 6354 by 776, we get 8 with a remainder of 146.
Use 8 as the next digit of our solution. 
Result so far: 528.0
If we subtract 6208 from 6354, we get 146.
Fetch the next digit (3) from the dividend, attach it to 146 and continue: 1463 / 776

On to step 7:
When dividing 1463 by 776, we get 1 with a remainder of 687.
Use 1 as the next digit of our solution. 
Result so far: 5281.0
If we subtract 776 from 1463, we get 687.
Fetch the next digit (0) from the dividend, attach it to 687 and continue: 6870 / 776

On to step 8:
776 can be fit into 6870 8 times, resulting in a remainder of 662.
Put 8 as the next digit of the answer. 
Result so far: 52818.0
Deduct 6208 from 6870 and we're left with 662.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6620, and continue the process.

Going ahead to step 9:
776 goes into 6620 8 times with a remainder of 412.
Use 8 as the next digit of our solution. 
Result so far: 52818.8
If we subtract 6208 from 6620, we get 412.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4120, and continue the process.

Moving on to step 10:
The number 776 fits into 4120 5 times, leaving a remainder of 240.
The next digit of our result is 5. 
Result so far: 52818.85
Deduct 3880 from 4120 and we're left with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Let's proceed to step 11:
If we divide 2400 by 776, we get 3 and a remainder of 72.
The number 3 becomes the next digit in our result. 
Result so far: 52818.853
If we subtract 2328 from 2400, we get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 12:
776 can be fit into 720 0 times, resulting in a remainder of 720.
Use 0 as the next digit of our solution. 
Result so far: 52818.853
Subtracting 0 from 720 leaves us with 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

Let's proceed to step 13:
The number 776 fits into 7200 9 times, leaving a remainder of 216.
Use 9 as the next digit of our solution. 
Result so far: 52818.85309
If we subtract 6984 from 7200, we get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

On to step 14:
776 goes into 2160 2 times with a remainder of 608.
Use 2 as the next digit of our solution. 
Result so far: 52818.853092
The remainder is 608 after subtracting 1552 from 2160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6080, and continue the process.

Let's proceed to step 15:
The number 776 fits into 6080 7 times, leaving a remainder of 648.
Use 7 as the next digit of our solution. 
Result so far: 52818.8530927
If we subtract 5432 from 6080, we get 648.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6480, and continue the process.

Moving on to step 16:
776 can be fit into 6480 8 times, resulting in a remainder of 272.
The next digit of our result is 8. 
Result so far: 52818.85309278
Deduct 6208 from 6480 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

After the division, we end up with 52818.85309278 and a remainder of 2.72e-07.