What I called a coin counting approach.
Response to: https://news.ycombinator.com/item?id=17637484
The face value of each coin is multiplied by the count of the coin type to total to the purse. Or rather, the sum of the nth powers of k multiplied by each positive coefficient equals the value of the function at k.