We divide 40739174 by 542
Our goal is to divide 40739174 by 542.

Let's proceed to step 1:
The number 542 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 542

Let's proceed to step 2:
542 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 542

Let's proceed to step 3:
542 can be fit into 407 0 times, resulting in a remainder of 407.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 407, we get 407.
Bring next digit (3) of the dividend behind the 407 and repeat the process: 4073 / 542

Let's proceed to step 4:
4073 divided by 542 is 7 with a remainder of 279.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
Deduct 3794 from 4073 and we're left with 279.
Include the next digit (9) from the dividend after 279, then repeat: 2799 / 542

On to step 5:
If we divide 2799 by 542, we get 5 and a remainder of 89.
Record the quotient 5 as the next digit in the result. 
Result so far: 75.0
Subtracting 2710 from 2799 leaves us with 89.
Include the next digit (1) from the dividend after 89, then repeat: 891 / 542

Step 6:
542 can be fit into 891 1 times, resulting in a remainder of 349.
The next digit of our result is 1. 
Result so far: 751.0
If we subtract 542 from 891, we get 349.
Include the next digit (7) from the dividend after 349, then repeat: 3497 / 542

Advancing to step 7:
3497 divided by 542 is 6 with a remainder of 245.
Record the quotient 6 as the next digit in the result. 
Result so far: 7516.0
Deduct 3252 from 3497 and we're left with 245.
Include the next digit (4) from the dividend after 245, then repeat: 2454 / 542

Going ahead to step 8:
542 can be fit into 2454 4 times, resulting in a remainder of 286.
Write down 4 as next digit of the result. 
Result so far: 75164.0
Subtracting 2168 from 2454 leaves us with 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

Advancing to step 9:
The number 542 fits into 2860 5 times, leaving a remainder of 150.
Write down 5 as next digit of the result. 
Result so far: 75164.5
Deduct 2710 from 2860 and we're left with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

On to step 10:
542 can be fit into 1500 2 times, resulting in a remainder of 416.
The number 2 becomes the next digit in our result. 
Result so far: 75164.52
If we subtract 1084 from 1500, we get 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

Let's proceed to step 11:
The number 542 fits into 4160 7 times, leaving a remainder of 366.
The next digit of our result is 7. 
Result so far: 75164.527
Deduct 3794 from 4160 and we're left with 366.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3660, and continue the process.

Step 12:
3660 divided by 542 is 6 with a remainder of 408.
Put 6 as the next digit of the answer. 
Result so far: 75164.5276
Subtracting 3252 from 3660 leaves us with 408.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4080, and continue the process.

Advancing to step 13:
The number 542 fits into 4080 7 times, leaving a remainder of 286.
Use 7 as the next digit of our solution. 
Result so far: 75164.52767
If we subtract 3794 from 4080, we get 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

Going ahead to step 14:
When dividing 2860 by 542, we get 5 with a remainder of 150.
Use 5 as the next digit of our solution. 
Result so far: 75164.527675
Subtracting 2710 from 2860 leaves us with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

On to step 15:
When dividing 1500 by 542, we get 2 with a remainder of 416.
Put 2 as the next digit of the answer. 
Result so far: 75164.5276752
Subtracting 1084 from 1500 leaves us with 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

Moving on to step 16:
When dividing 4160 by 542, we get 7 with a remainder of 366.
Use 7 as the next digit of our solution. 
Result so far: 75164.52767527
If we take 3794 away from 4160, we end up with 366.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3660, and continue the process.

Our division results in 75164.52767527 with a remaining 3.66e-07.