Spot the Fake

One of N coins is slightly heavier than the others. How large can N be if the coin can be determined with only two weighings with a set of scales?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem



One coin among $N$ identical-looking coins is a fake and is slightly heavier than the others, which all have the same weight. To compare two groups of coins you are allowed to use a set of scales with two pans which balance exactly when the weight in each pan is the same. What is the largest value of $N$ for which the fake coin can be identified using a maximum of two such comparisons?

If you liked this problem, here is an NRICH task that challenges you to use similar mathematical ideas.