Find largest $k$ such that the diophantine equation $ax+by=k$ does not have nonnegative solution.

658 Views Asked by At

It is given that $a$ and $b$ are coprime positive integers. My question is, what is the largest integer $k$ such that the diophantine equation $ax+by=k$ does not have any solution where $x$ and $y$ are nonnegative integers ?

1

There are 1 best solutions below

0
On

This $k$ is called the Frobenius number and equals $ab-a-b$ (http://en.wikipedia.org/wiki/Frobenius_number#n_.3D_2).