40518488 divided by 749 
We're looking to find how many times 749 goes into 40518488.

Moving on to step 1:
4 divided by 749 is 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.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 749

On to step 2:
If we divide 40 by 749, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 749

On to step 3:
When dividing 405 by 749, we get 0 with a remainder of 405.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 405, we get 405.
Append the next digit (1) from the dividend to 405 and continue with: 4051 / 749

Advancing to step 4:
The number 749 fits into 4051 5 times, leaving a remainder of 306.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 3745 from 4051 and we're left with 306.
Fetch the next digit (8) from the dividend, attach it to 306 and continue: 3068 / 749

Going ahead to step 5:
749 can be fit into 3068 4 times, resulting in a remainder of 72.
Use 4 as the next digit of our solution. 
Result so far: 54.0
Subtract 2996 from 3068 to get 72.
Include the next digit (4) from the dividend after 72, then repeat: 724 / 749

Advancing to step 6:
749 goes into 724 0 times with a remainder of 724.
Put 0 as the next digit of the answer. 
Result so far: 540.0
Subtracting 0 from 724 leaves us with 724.
Grab the next digit (8) from the dividend, add it to 724, then carry on: 7248 / 749

Step 7:
When dividing 7248 by 749, we get 9 with a remainder of 507.
Record the quotient 9 as the next digit in the result. 
Result so far: 5409.0
If we take 6741 away from 7248, we end up with 507.
Include the next digit (8) from the dividend after 507, then repeat: 5078 / 749

Advancing to step 8:
749 can be fit into 5078 6 times, resulting in a remainder of 584.
The number 6 becomes the next digit in our result. 
Result so far: 54096.0
The remainder is 584 after subtracting 4494 from 5078.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5840, and continue the process.

Advancing to step 9:
749 can be fit into 5840 7 times, resulting in a remainder of 597.
Write down 7 as next digit of the result. 
Result so far: 54096.7
Subtracting 5243 from 5840 leaves us with 597.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5970, and continue the process.

Advancing to step 10:
If we divide 5970 by 749, we get 7 and a remainder of 727.
Put 7 as the next digit of the answer. 
Result so far: 54096.77
Subtracting 5243 from 5970 leaves us with 727.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7270, and continue the process.

In conclusion, the division gives 54096.77 with a balance of 0.727.