FrobeniusSolve
get a list of solutions for the Frobenius equation given by the list of integers
{a1, ... ,aN}
and the non-negative integerM
.
The Frobenius problem, also known as the postage-stamp problem or the money-changing problem, is an integer programming problem that seeks nonnegative integer solutions to x1*a1 + ... + xN*aN = M
where ai
and M
are positive integers.
In particular, the Frobenius number FrobeniusNumber({a1, ... ,aN})
, is the largest M
so that this equation fails to have a solution.
See:
Examples
Solve the diophantine equation 2*x + 3*y + 4*z == 29
:
Related terms
FrobeniusNumber, IntegerPartitions
Implementation status
- ☑ - partially implemented