What should be the value of $n$, so that $12x+13y = n$ has 11 non-negative integer solutions?
As it is a Diophantine equation, so we check whether the solution exists? it exists if $gcd(12,13)|n$ that is $1|n$ and hence integer solutions to $12x+13y = n$ exist.
To find the solutions explicitly, we write $1 $ as the linear combinations of $12$ and $13$ that is $1 = 12(1) + 13(-1)$, next we write $n = 12(n) + 13(-n)$ so that the integer solutions to $12x+13y = n$ is $x = n + t(12)$ and $y = -n + t(13)$. To check for non-negative integral solutions, $x \geq 0$ and $y \geq 0$ so that $t \geq -\frac{n^2}{12}$ and $t \geq \frac{n^2}{13}$ so $t \geq \frac{n^2}{13}$. But now I am struggling how to relate this to the 11 number of non-negative integral solutions?.Any help?
If $(x,y)$ and $(x',y')$ are two of the eleven solutions, then $x'=x+13t$, $y'=y-12t$ for some integer $t$. Hence the $11$ solutions will be of the form $x=x_0+13t$, $y=y_0-12t$ with $t$ ranging over $11$ consecutive integers, wlog over the integers $\{0,1,\ldots,10\}$. As $t=-1$ does not lead to a solution, we conclude $x_0-13<0$. As $t=11$ does not lead to a solution, we conclude $y_0-11\cdot 12<0$, i.e. $x_0<13$ and $y_0<132$. On the other hand $t=0$ and $t=10$ do lead to solutions, so $x_0\ge0$ and $y_0\ge120$. For any choice of $x_0\in\{0,1,\ldots, 12\}$ and $y_0\in\{120,121,\ldots, 131\}$, letting $n=12x_0+13y_0$ will lead to exactly $11$ non-negative integer solutions (and for no other $n$).