FrobeniusNumber
The largest integer that is not a non-negative integer combination of the given positive integers.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
FrobeniusNumber✓FrobeniusNumber(list)the coin problem's answer for these denominationsTyped signatures
| Type | Package | Applies |
|---|---|---|
(list<integer>) -> integer | number-theory | always |
Details
- By the round-robin shortest-path algorithm over for the smallest generator , not by searching FrobeniusSolve upward.
- Requires the generators' to be 1 — otherwise every multiple of that gcd past it is still unreachable, so the answer is .
Examples
About
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 5 agree |
| Crosswalk | Wolfram Language |
See also: FrobeniusSolve, GCD