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

Step 1:
42 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 42

Going ahead to step 2:
54 divided by 42 is 1 with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 42 from 54 to get 12.
Fetch the next digit (0) from the dividend, attach it to 12 and continue: 120 / 42

Step 3:
42 goes into 120 2 times with a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
The remainder is 36 after subtracting 84 from 120.
Fetch the next digit (8) from the dividend, attach it to 36 and continue: 368 / 42

Step 4:
42 can be fit into 368 8 times, resulting in a remainder of 32.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
Subtracting 336 from 368 leaves us with 32.
Bring next digit (0) of the dividend behind the 32 and repeat the process: 320 / 42

On to step 5:
42 can be fit into 320 7 times, resulting in a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 1287.0
If we take 294 away from 320, we end up with 26.
Append the next digit (4) from the dividend to 26 and continue with: 264 / 42

Going ahead to step 6:
If we divide 264 by 42, we get 6 and a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 12876.0
Subtract 252 from 264 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 7:
If we divide 120 by 42, we get 2 and a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 12876.2
The remainder is 36 after subtracting 84 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 8:
If we divide 360 by 42, we get 8 and a remainder of 24.
Put 8 as the next digit of the answer. 
Result so far: 12876.28
Subtracting 336 from 360 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 9:
240 divided by 42 is 5 with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 12876.285
Deduct 210 from 240 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
42 goes into 300 7 times with a remainder of 6.
The next digit of our result is 7. 
Result so far: 12876.2857
The remainder is 6 after subtracting 294 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 11:
60 divided by 42 is 1 with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 12876.28571
If we take 42 away from 60, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 12:
42 goes into 180 4 times with a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 12876.285714
Deduct 168 from 180 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 13:
When dividing 120 by 42, we get 2 with a remainder of 36.
Record the quotient 2 as the next digit in the result. 
Result so far: 12876.2857142
If we take 84 away from 120, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 14:
42 can be fit into 360 8 times, resulting in a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 12876.28571428
Subtract 336 from 360 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final outcome is 12876.28571428, with a leftover of 2.4e-08.