Considering a general fake coin problem. There are $n$ coins in total and $k$ of them are fake. Fake coins are lighter than the normal ones. You only have a balance to compare two groups of coins (no amount limit). How many times you will compare at least?
Note: All the fake coins have the same weight $w_f$; all the good coins have the same weight $w_g$; $w_f < w_g$; The target is to find all the fake coins using minimum time complexity (expected $O(\log n)$).