Find all $n,x \in \Bbb N$ such that $3\cdot2^x+4=n^2$
Arranging the equation a bit one has that $$(n-2)(n+2)=3\cdot2^x.$$
Now considering the cases $n-2=3, n+2=2^x$ from $n-2=3 \Rightarrow n=5$. Substituting this to $n+2=2^x \Rightarrow 7=2^x$ which isn't an integer solution.
Considering the opposite $n+2=3$ and $n-2=2^x$ one gets that $n+2=3 \Rightarrow n=1$ and substituting this to $n-2=2^x$ we have that $-1=2^x$ which also doesn't have any solutions.
What am I missing here since this seemed to have $3$ pairs of solutions?
You're off to a good start; writing $$(n-2)(n+2)=3\cdot2^x,$$ shows, by unique factorization of integers, that $$n-2=2^a3^b,\qquad\text{ and }\qquad n+2=2^c3^d,$$ for nonnegative integers $a$, $b$, $c$ and $d$ with $a+c=x$ and $b+d=1$. Of course $b+d=1$ leaves very few options for $b$ and $d$. Can you continue from here?
Solution: