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

Moving on to step 1:
When dividing 4 by 587, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 587

Advancing to step 2:
587 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Take the next digit (9) from the dividend and append it to 40, then repeat: 409 / 587

Let's proceed to step 3:
409 divided by 587 is 0 with a remainder of 409.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 409 after subtracting 0 from 409.
Include the next digit (1) from the dividend after 409, then repeat: 4091 / 587

Let's proceed to step 4:
The number 587 fits into 4091 6 times, leaving a remainder of 569.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 569 after subtracting 3522 from 4091.
Include the next digit (7) from the dividend after 569, then repeat: 5697 / 587

Going ahead to step 5:
The number 587 fits into 5697 9 times, leaving a remainder of 414.
The next digit of our result is 9. 
Result so far: 69.0
Subtracting 5283 from 5697 leaves us with 414.
Include the next digit (5) from the dividend after 414, then repeat: 4145 / 587

Going ahead to step 6:
4145 divided by 587 is 7 with a remainder of 36.
The number 7 becomes the next digit in our result. 
Result so far: 697.0
Deduct 4109 from 4145 and we're left with 36.
Bring next digit (5) of the dividend behind the 36 and repeat the process: 365 / 587

Step 7:
When dividing 365 by 587, we get 0 with a remainder of 365.
Record the quotient 0 as the next digit in the result. 
Result so far: 6970.0
Subtract 0 from 365 to get 365.
Grab the next digit (8) from the dividend, add it to 365, then carry on: 3658 / 587

Going ahead to step 8:
When dividing 3658 by 587, we get 6 with a remainder of 136.
The next digit of our result is 6. 
Result so far: 69706.0
If we subtract 3522 from 3658, we get 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

On to step 9:
587 goes into 1360 2 times with a remainder of 186.
Record the quotient 2 as the next digit in the result. 
Result so far: 69706.2
The remainder is 186 after subtracting 1174 from 1360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1860, and continue the process.

Step 10:
587 can be fit into 1860 3 times, resulting in a remainder of 99.
Record the quotient 3 as the next digit in the result. 
Result so far: 69706.23
Subtract 1761 from 1860 to get 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Let's proceed to step 11:
When dividing 990 by 587, we get 1 with a remainder of 403.
Use 1 as the next digit of our solution. 
Result so far: 69706.231
Subtracting 587 from 990 leaves us with 403.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4030, and continue the process.

Advancing to step 12:
587 can be fit into 4030 6 times, resulting in a remainder of 508.
Use 6 as the next digit of our solution. 
Result so far: 69706.2316
Deduct 3522 from 4030 and we're left with 508.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5080, and continue the process.

Going ahead to step 13:
When dividing 5080 by 587, we get 8 with a remainder of 384.
Write down 8 as next digit of the result. 
Result so far: 69706.23168
If we take 4696 away from 5080, we end up with 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Step 14:
If we divide 3840 by 587, we get 6 and a remainder of 318.
Record the quotient 6 as the next digit in the result. 
Result so far: 69706.231686
Subtracting 3522 from 3840 leaves us with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Advancing to step 15:
587 goes into 3180 5 times with a remainder of 245.
The next digit of our result is 5. 
Result so far: 69706.2316865
If we subtract 2935 from 3180, we get 245.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2450, and continue the process.

Advancing to step 16:
The number 587 fits into 2450 4 times, leaving a remainder of 102.
Use 4 as the next digit of our solution. 
Result so far: 69706.23168654
If we subtract 2348 from 2450, we get 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

In conclusion, the division gives 69706.23168654 with a balance of 1.02e-07.