**Lemma 1:** Given a colection of $3^n$ coins, where **exactly** one coin is counterfeit (meaning it weighs more than the rest), prove it is always possible to identify which coin is counterfeit using at most $n$ weighings.
**Proof:** Induction by $n$, split the coins into three equal groups.
**Lemma 2:** Given a colection of $3^n-1$ coins, where at most one coin is counterfeit (meaning it weighs more than the rest), prove it is always possible to identify which coin is counterfeit using at most $n$ weighings.
**Proof:** Induction by $n$. To prove $P(n+1)$ split the coins into three groups of $3^n, 3^n$ and $3^{n}-1$ coins.
Weight the two equal groups. If the scale tips, thenyou know that there is an heavier coin on the heavier side, and you can apply Lemma 1.
If the scale doesn't tip, then can eliminate the two groups on the scale and apply $P(n)$.