[math-fun] how to test whether a coin is fair