542258 ÷ 42 
We want to figure out the number of times 542258 can be divided by 42.

Moving on to step 1:
The number 42 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 42

Advancing to step 2:
The number 42 fits into 54 1 times, leaving a remainder of 12.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 12 after subtracting 42 from 54.
Append the next digit (2) from the dividend to 12 and continue with: 122 / 42

On to step 3:
42 can be fit into 122 2 times, resulting in a remainder of 38.
Put 2 as the next digit of the answer. 
Result so far: 12.0
The remainder is 38 after subtracting 84 from 122.
Include the next digit (2) from the dividend after 38, then repeat: 382 / 42

Moving on to step 4:
When dividing 382 by 42, we get 9 with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 129.0
If we subtract 378 from 382, we get 4.
Include the next digit (5) from the dividend after 4, then repeat: 45 / 42

Step 5:
45 divided by 42 is 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1291.0
Subtracting 42 from 45 leaves us with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 42

Step 6:
When dividing 38 by 42, we get 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 12910.0
If we take 0 away from 38, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 7:
380 divided by 42 is 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 12910.9
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 8:
When dividing 20 by 42, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12910.9
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 9:
200 divided by 42 is 4 with a remainder of 32.
Use 4 as the next digit of our solution. 
Result so far: 12910.904
If we take 168 away from 200, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 10:
320 divided by 42 is 7 with a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 12910.9047
If we take 294 away from 320, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 11:
260 divided by 42 is 6 with a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 12910.90476
Subtracting 252 from 260 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
42 can be fit into 80 1 times, resulting in a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 12910.904761
The remainder is 38 after subtracting 42 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 13:
If we divide 380 by 42, we get 9 and a remainder of 2.
The next digit of our result is 9. 
Result so far: 12910.9047619
If we subtract 378 from 380, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 14:
When dividing 20 by 42, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 12910.9047619
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

After the division, we end up with 12910.9047619 and a remainder of 2e-08.