Using only 4$ and 7$ bills, you could pay any integer number of dollars, greater than 17.
Prove it.
Given two coprime numbers a and b, what is the minimal number M(a,b) such that any amount greater or equal to M(a,b) can be expressed as p*a+q*b (p & q non-negative integers)?
How much is M(37,38)?