My professor gave us this problem to solve:
It took me more than 3 hours to solve it, I would like to share it with you.You are given 12 coins. One of them is lighter or heavier than the others. You can use three weightings. You have to identify the different coin.