in reply to Re: Golf: Buying with exact change
in thread Golf: Buying with exact change
For those of us "math challanged" you denominations must not have any common factors. i.e. all even, all multiples of some
N. Otherwise there is an infinite number of prices which you can't buy:-(
In a more obscure vein. A closed solution for arbitrary M has been shown to be NP-hard.