Recursive number of coins required