TOPICS
Search

Frobenius Number


The Frobenius number is the largest value b for which the Frobenius equation

 a_1x_1+a_2x_2+...+a_nx_n=b
(1)

has no solution, where the a_i are positive integers with greatest common divisor 1, b is an integer, and the solutions x_i are nonnegative integers. As an example, if the a_i values are 4 and 9, then 23 is the largest unsolvable number. Similarly, the largest number that is not a McNugget number (a number obtainable by adding multiples of 6, 9, and 20) is 43.

Finding the Frobenius number of a given problem is known as the coin problem.

Computation of the Frobenius number g(a_1,a_2,...) is implemented in the Wolfram Language as FrobeniusNumber[{a1, ..., an}].

For relatively prime a_1 and a_2, Sylvester (1884) showed

g(a_1,a_2)=(a_1-1)(a_2-1)-1
(2)
=a_1a_2-(a_1+a_2).
(3)

Chen et al. (2026) proved that, for positive integers 0<a_1<...<a_n with n>=2 and gcd(a_1,...,a_n)=1,

 g(a_1,...,a_n)<=a_(n-1)[(a_n)/(n-1)]-a_n-1,
(4)

where [x] denotes the ceiling function. For every n>=3, equality holds for infinitely many choices of the generators (Chen et al. 2026).

Chen et al. (2026) credit GPT-6 with helping find the argument that improves their initial upper bound by one and with assistance in proving sharpness.

The asymptotic problem of maximizing the Frobenius number over n-element generating sets contained in {1,...,N} is problem 433 in the Erdős problems collection. Its leading value N^2/(n-1) for fixed n was established by Dixmier (1990).


See also

Coin Problem, Frobenius Equation, Greedy Algorithm, McNugget Number, Numerical Semigroup, Postage Stamp Problem

Explore with Wolfram|Alpha

References

Bloom, T. "Erdős Problem #433." Accessed Oct. 26, 2026. https://www.erdosproblems.com/433.Chen, L.; Hu, T.; Mao, Y.; and Zhang, G. "A Sharp Upper Bound for the Frobenius Number." 23 Oct 2026. https://arxiv.org/abs/2610.32219.Dixmier, J. "Proof of a Conjecture by Erdős and Graham Concerning the Problem of Frobenius." J. Number Th. 34, 198-209, 1990. https://doi.org/10.1016/0022-314X(90)90150-P.Numberphile. "The Frobenius Problem (and Numerical Semigroups)." Featuring D. Eisenbud. Jan. 10, 2025. https://www.youtube.com/watch?v=be8BGCLuC54.Sylvester, J. J. "Question 7382." Mathematical Questions from the Educational Times 41, 21, 1884.

Referenced on Wolfram|Alpha

Frobenius Number

Cite this as:

Weisstein, Eric W. "Frobenius Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/FrobeniusNumber.html

Subject classifications