40387346 ÷ 542 
Let's see how many times 542 fits into 40387346.

Let's proceed to step 1:
4 divided by 542 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 542

Let's proceed to step 2:
542 goes into 40 0 times with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Bring next digit (3) of the dividend behind the 40 and repeat the process: 403 / 542

Step 3:
403 divided by 542 is 0 with a remainder of 403.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 403 to get 403.
Include the next digit (8) from the dividend after 403, then repeat: 4038 / 542

Going ahead to step 4:
The number 542 fits into 4038 7 times, leaving a remainder of 244.
The next digit of our result is 7. 
Result so far: 7.0
Subtract 3794 from 4038 to get 244.
Grab the next digit (7) from the dividend, add it to 244, then carry on: 2447 / 542

Step 5:
542 goes into 2447 4 times with a remainder of 279.
Put 4 as the next digit of the answer. 
Result so far: 74.0
Subtracting 2168 from 2447 leaves us with 279.
Fetch the next digit (3) from the dividend, attach it to 279 and continue: 2793 / 542

Let's proceed to step 6:
2793 divided by 542 is 5 with a remainder of 83.
Record the quotient 5 as the next digit in the result. 
Result so far: 745.0
Subtracting 2710 from 2793 leaves us with 83.
Include the next digit (4) from the dividend after 83, then repeat: 834 / 542

Advancing to step 7:
If we divide 834 by 542, we get 1 and a remainder of 292.
Record the quotient 1 as the next digit in the result. 
Result so far: 7451.0
If we subtract 542 from 834, we get 292.
Append the next digit (6) from the dividend to 292 and continue with: 2926 / 542

Step 8:
When dividing 2926 by 542, we get 5 with a remainder of 216.
Use 5 as the next digit of our solution. 
Result so far: 74515.0
Subtract 2710 from 2926 to 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.

Let's proceed to step 9:
If we divide 2160 by 542, we get 3 and a remainder of 534.
The number 3 becomes the next digit in our result. 
Result so far: 74515.3
Subtract 1626 from 2160 to get 534.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5340, and continue the process.

Step 10:
542 can be fit into 5340 9 times, resulting in a remainder of 462.
Write down 9 as next digit of the result. 
Result so far: 74515.39
Subtract 4878 from 5340 to get 462.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4620, and continue the process.

Moving on to step 11:
4620 divided by 542 is 8 with a remainder of 284.
Record the quotient 8 as the next digit in the result. 
Result so far: 74515.398
If we subtract 4336 from 4620, we get 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

On to step 12:
When dividing 2840 by 542, we get 5 with a remainder of 130.
Record the quotient 5 as the next digit in the result. 
Result so far: 74515.3985
If we subtract 2710 from 2840, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

On to step 13:
The number 542 fits into 1300 2 times, leaving a remainder of 216.
Record the quotient 2 as the next digit in the result. 
Result so far: 74515.39852
The remainder is 216 after subtracting 1084 from 1300.
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:
542 goes into 2160 3 times with a remainder of 534.
Write down 3 as next digit of the result. 
Result so far: 74515.398523
If we take 1626 away from 2160, we end up with 534.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5340, and continue the process.

Going ahead to step 15:
542 can be fit into 5340 9 times, resulting in a remainder of 462.
Write down 9 as next digit of the result. 
Result so far: 74515.3985239
The remainder is 462 after subtracting 4878 from 5340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4620, and continue the process.

Let's proceed to step 16:
542 goes into 4620 8 times with a remainder of 284.
Write down 8 as next digit of the result. 
Result so far: 74515.39852398
Deduct 4336 from 4620 and we're left with 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

The final outcome is 74515.39852398, with a leftover of 2.84e-07.