Let's divide 540799 by 42
We're looking to find how many times 42 goes into 540799.

Step 1:
If we divide 5 by 42, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 42

Moving on to step 2:
54 divided by 42 is 1 with a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 42 from 54 leaves us with 12.
Take the next digit (0) from the dividend and append it to 12, then repeat: 120 / 42

Step 3:
The number 42 fits into 120 2 times, leaving a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 12.0
The remainder is 36 after subtracting 84 from 120.
Take the next digit (7) from the dividend and append it to 36, then repeat: 367 / 42

On to step 4:
The number 42 fits into 367 8 times, leaving a remainder of 31.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
Subtracting 336 from 367 leaves us with 31.
Grab the next digit (9) from the dividend, add it to 31, then carry on: 319 / 42

Let's proceed to step 5:
The number 42 fits into 319 7 times, leaving a remainder of 25.
Put 7 as the next digit of the answer. 
Result so far: 1287.0
Deduct 294 from 319 and we're left with 25.
Take the next digit (9) from the dividend and append it to 25, then repeat: 259 / 42

Step 6:
259 divided by 42 is 6 with a remainder of 7.
The number 6 becomes the next digit in our result. 
Result so far: 12876.0
Deduct 252 from 259 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 7:
When dividing 70 by 42, we get 1 with a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 12876.1
If we subtract 42 from 70, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 8:
The number 42 fits into 280 6 times, leaving a remainder of 28.
The next digit of our result is 6. 
Result so far: 12876.16
Subtracting 252 from 280 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 9:
42 can be fit into 280 6 times, resulting in a remainder of 28.
Record the quotient 6 as the next digit in the result. 
Result so far: 12876.166
If we subtract 252 from 280, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

After the division, we end up with 12876.166 and a remainder of 0.0028.