Step 1:
Make 3 groups of 18 coins: A,B,C.
Compare A to B and B to C. If A≠B and B≠C then A=C.
Select the 'odd' group (assume C) and note if it is lighter or heavier than the others. (assume lighter)
2 weighings used
Step 2:
Split C into 3 groups of 6: D,E,F.
Compare D to E. If D=E, F is the odd group. Go to 3a
If D≠E the lighter one is the odd group (assume D). Go to 3b
3 weighings used
Step 3a:
Split F in 3 groups of 2: G,H,I.
Compare G and H.
- If G≠H compare the lighter portion (assume G) with I.
- If G=I, then A+D+G+(either coin of H)=B+E+I+(the other coin of H)
- If G≠I, then H=I and A+D+H+(either coin of G)=B+E+I+(the other coin of G)
- If G=H, then A+D+G+(either coin of I)=B+E+H+(the other coin of I)
Step 3b:
Split D in 3 groups of 2: G,H,I.
Compare G and H.
- If G=H, compare D and F.
- If D=F, then A+D+(any three coins of E)=B+F+(the other 3 coins of E)
- If D≠F, then A+F+G+(either coin of I)=B+E+H+(the other coin of I)
- If G≠H, (assume G is the lighter one) compare I+(any 4 known good coins) and F.
- If F<I+4, A+D+(any three coins of E)=B+F+(the other 3 coins of E)
- If F=I+4, A+E+G+(either coin of D)=B+F+I+(the other coin of D)
The key here is to use the knowledge of whether the odd set of coins were lighter or heavier to help locate the fakes, if they are within the odd set of coins.