I’ll take up an issue with that statement. I’d say it depends on the kind of possibilities that you are trying to distinguish. The puzzle required to find the counterfeit coin AND tell whether it is heavier or lighter. While you can definitely solve 27 in 4 weighings, I don’t see how you can solve 40 in 4. Although, there are only 80 possibilities (less than 3**4). You can find one counterfeit coin out of 40 in 4 weighings, but not necessarily tell whether it is heavier, or lighter.... You can distinguish among 3**N cases in N weighings. ...
For the sake of saving space, solve 13 coins in 3 weighing. I can see how you can find counterfeit coin there, but I can’t ensure determining whether it is heavier, or lighter.







