Given coin denominations, which amounts can be represented? For two coprime integers a, b: the Frobenius number (largest unrepresentable amount) = ab − a − b (Sylvester, 1884).
Green = representable | Red = unreachable | Gold border = Frobenius number