there are some integer pairs $(m,n)$ that satisfy $$\frac{m^2+mn+n^2}{m+2n}=\frac{13}{3}.$$ Find the value of $m + 2n.$
I tried expressing the numerator in terms of $m+2n$ but it resulted in nothing remotely useful
hints or suggestions would be appreciated aswell as solutions.
from the 2019 SAIMC https://chiuchang.org/imc/wp-content/uploads/sites/2/2019/08/2019-IWYMIC-answer.x17381.pdf
I can rewrite the equation $\frac{m^2+mn+n^2}{m+2n}=\frac{13}{3}$ in the form: $3m^2+3mn+3n^2=13(m+2n)$ and so $3m^2+m(3n-13)-26n+3n^2=0$. Using the quadratic formula: $$m=\frac{-(3n-13)\pm\sqrt{(3n-13)^2-4\cdot3\cdot(3n^2-26n)}}{6}$$
The polynomial $(3n-13)^2-4\cdot3\cdot(3n^2-26n)$ is positive only if $\frac{13}{3}-\frac{\sqrt{26}}{3\sqrt3}\leq x \leq \frac{13}{3}+\frac{\sqrt{26}}{3\sqrt3}$. The only cases when the polynomial is a square are $n=2$ $\land$ $m=5$ or $n=7$ $\land$ $m=-5$.
Let $A_1=m_1+2n_1=5+2\cdot 2=9$ and $A_2=m_2+2n_2=-3$.