if n≥3, (1) cannot hold. One can prove this eithe by induction or by direct argument. If n≥3 then 2⋅3n=2(1+2)n=2[1+2n+n(n−1)2!⋅22+o(n2)]>2+4n2=3n2+(n2+2)≥3n2+11>3n2+6
⟹2.3n>3n2+6
Hence contradiction to (1) Hence n=1 or 2 If n=1, then 32n+3n2+7=19 and this is not a perfect square. If n=2, we obtain 32n+3n2+7=81+12+7=100=102 ∴n=2 is the only solution.