The Hidden Math Behind Olympic Medals and Gold Coins