I am trying to find the greatest value of $"c"$ for which $7x + 9y = c$ has exactly six solutions over positive integers.
My approach: Let one of the solution = $(a, b)$
General solution is $(a + 9t, b - 7t)$
For values t = 0, 1, 2, 3, 4, 5 we get 6 solutions.
Also $b - 7t$ should be positive.
So maximum value of $b$ is 41.
I am struck at this point how to find the maximum value of $a$ subject to the condition $7a + 9b = c$ is maximum.
Any help?
When you don´t restraint the values $(x,y)$ the general solution is given by $(x,y)=(a+9t,b-7t)$ and there are infinitely many solutions hence, in order to have exactly six solutions we take positive or non-negative ones. We take positive solutions.
It follows one can take the values $t=0,1,2,3,4,5$ so $7t\in\{0,7,14,21,28,35\}$ which implies $35\lt b\lt 42$. For each of these six values of $b$, we can take any $a$ so we get a value of $c$ and the equation admits exactly six positive solutions for all value of $a$, $b$ being fixed. It is clear that does not exist a maximum for $c$ because $a$ can be arbitrarily large.
But we can search a minimum $c$. Take $b=36$ and $a=1$; this gives the value $$c=7 \cdot 1+9\cdot36=\color{red}{331}$$ and the equation $$7x+9y=331$$ which admits exactly the following six positive solutions: $$(x,y)\in\{(1,36),(10,29),(19,22),(28,15),(37,8),(46,1)\}$$