I have this question:
Known that: $$3pq-5p+4q=22$$ Find the value of $p + q$
I have solved 2 variables with 2 equations or more, but I have never encountered 1 equation with 2 variables. The answer is a positive integer. Can I have a hint or a guide?
Thanks!
The given equation can be written as $$(3p+4)(3q-5)=46$$ Since $p$ and $q$ are both integers (as what OP has mentioned in the comments). Therefore, we want factors of $46=ab$ such that \begin{align*} 3p+4 & =a \\ 3q-5 & =b \end{align*} Thus $$3(p+q)=a+b+1 \implies a+b+1 \equiv 0 \pmod{3}.$$ But the only possible values for $a,b \in \{\pm 1, \pm 2, \pm 23, \pm 46\}$ (of course with $ab=46)$. However the solutions that satisfy $a+b+1 \equiv 0 \pmod{3}$ are $(a,b) \in \{(1,46), (46,1),(-2,-23),(-23,-2)\}$.
Hence $p+q \in \{16,-8\}$.