542166 divided by 12 
We're looking to find how many times 12 goes into 542166.

Advancing to step 1:
5 divided by 12 is 0 with 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.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 12

On to step 2:
12 can be fit into 54 4 times, resulting in a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtracting 48 from 54 leaves us with 6.
Append the next digit (2) from the dividend to 6 and continue with: 62 / 12

Going ahead to step 3:
The number 12 fits into 62 5 times, leaving a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 45.0
Deduct 60 from 62 and we're left with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 12

Let's proceed to step 4:
When dividing 21 by 12, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 451.0
Subtract 12 from 21 to get 9.
Include the next digit (6) from the dividend after 9, then repeat: 96 / 12

Going ahead to step 5:
When dividing 96 by 12, we get 8 with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 4518.0
Deduct 96 from 96 and we're left with 0.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 12

Let's proceed to step 6:
When dividing 6 by 12, we get 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 45180.0
If we subtract 0 from 6, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
60 divided by 12 is 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 45180.5
Subtracting 60 from 60 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
0 divided by 12 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 45180.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
12 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 45180.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 45180.5 and a remainder of 0.0.