We divide 40577040 by 987
Our goal is to divide 40577040 by 987.

Moving on to step 1:
4 divided by 987 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 987

Advancing to step 2:
The number 987 fits into 40 0 times, leaving a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (5) from the dividend and append it to 40, then repeat: 405 / 987

Let's proceed to step 3:
405 divided by 987 is 0 with a remainder of 405.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 405, we get 405.
Append the next digit (7) from the dividend to 405 and continue with: 4057 / 987

Moving on to step 4:
987 can be fit into 4057 4 times, resulting in a remainder of 109.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 3948 from 4057, we get 109.
Append the next digit (7) from the dividend to 109 and continue with: 1097 / 987

Step 5:
987 goes into 1097 1 times with a remainder of 110.
Record the quotient 1 as the next digit in the result. 
Result so far: 41.0
Subtract 987 from 1097 to get 110.
Bring next digit (0) of the dividend behind the 110 and repeat the process: 1100 / 987

On to step 6:
When dividing 1100 by 987, we get 1 with a remainder of 113.
The next digit of our result is 1. 
Result so far: 411.0
Deduct 987 from 1100 and we're left with 113.
Grab the next digit (4) from the dividend, add it to 113, then carry on: 1134 / 987

Moving on to step 7:
1134 divided by 987 is 1 with a remainder of 147.
Put 1 as the next digit of the answer. 
Result so far: 4111.0
If we subtract 987 from 1134, we get 147.
Fetch the next digit (0) from the dividend, attach it to 147 and continue: 1470 / 987

Step 8:
The number 987 fits into 1470 1 times, leaving a remainder of 483.
Put 1 as the next digit of the answer. 
Result so far: 41111.0
The remainder is 483 after subtracting 987 from 1470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4830, and continue the process.

Going ahead to step 9:
When dividing 4830 by 987, we get 4 with a remainder of 882.
The next digit of our result is 4. 
Result so far: 41111.4
If we take 3948 away from 4830, we end up with 882.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8820, and continue the process.

Going ahead to step 10:
987 goes into 8820 8 times with a remainder of 924.
The number 8 becomes the next digit in our result. 
Result so far: 41111.48
If we take 7896 away from 8820, we end up with 924.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9240, and continue the process.

On to step 11:
If we divide 9240 by 987, we get 9 and a remainder of 357.
Put 9 as the next digit of the answer. 
Result so far: 41111.489
The remainder is 357 after subtracting 8883 from 9240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3570, and continue the process.

Advancing to step 12:
When dividing 3570 by 987, we get 3 with a remainder of 609.
Write down 3 as next digit of the result. 
Result so far: 41111.4893
Subtracting 2961 from 3570 leaves us with 609.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6090, and continue the process.

On to step 13:
987 can be fit into 6090 6 times, resulting in a remainder of 168.
Put 6 as the next digit of the answer. 
Result so far: 41111.48936
The remainder is 168 after subtracting 5922 from 6090.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

Step 14:
987 can be fit into 1680 1 times, resulting in a remainder of 693.
Put 1 as the next digit of the answer. 
Result so far: 41111.489361
Deduct 987 from 1680 and we're left with 693.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6930, and continue the process.

On to step 15:
987 can be fit into 6930 7 times, resulting in a remainder of 21.
The next digit of our result is 7. 
Result so far: 41111.4893617
If we subtract 6909 from 6930, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 16:
987 goes into 210 0 times with a remainder of 210.
Put 0 as the next digit of the answer. 
Result so far: 41111.4893617
The remainder is 210 after subtracting 0 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

The final outcome is 41111.4893617, with a leftover of 2.1e-07.