You have a pile of 8 identical coins, and you know one of them is a fake and is lighter than the genuine coins. What is the minimum number of weighings needed to identify the fake coin with a two-pan balance scale without weights?
Write out your algorithm.