Let $p$ be an odd prime, and $a$, $b$ be two positive integers such that $2a>b$. If $4p^{2a}+4p^b+1$ is a perfect square, prove that $a=b$.
If $b<a$, then $(2p^a)^2<4p^{2a}+4p^b+1<(2p^a+1)^2$, which is contradictory. So $b\ge a$. If we write $4p^{2a}+4p^b+1=m^2$, then $(m+1)(m-1)=4p^b(p^{2a-b}+1)$. Since $(m+1,m-1)\le2$, then exactly one of $m+1$ and $m-1$ is divisible by $p^b$.
Then I don't know how to continue.
I continue with your solution. Since $4p^2a+4p^b+1$ is odd, then $m^2$ is odd implies m is odd. So $gcd(m+1,m-1) = 2$. Hence $4 \mid (m+1)(m-1)$ So we let $\frac{m+1}{2} = s$ and $\frac{m-1}{2} = s-1$ We have $s(s-1) = p^b(p^{2a - b} + 1)$ Since $(p^b, p^{2a - b} + 1) = 1$ and similar for $(s,s-1)$ = 1, then $$\\$$ Case 1: $p^b$ = $s-1$ and $p^{2a - b} + 1 = s$ $$\\$$Case 2: $p^b = s$ and $p^2a-b + 1 = s - 1$ $$\\$$ Case 1 implies a = b $$\\$$ For case 2 we have $p^b = p^{2a-b} + 2$, using the fact that $b\ge a$ we get $p^{2a-b}(p^{2b-2a} - 1) = 2$, $b = a$ leads contradiction so $b > a$, then $p^{2a-b} $ and $ p^{2b-2a} \ge 3$, contradiction because $p^{2a-b}(p^{2b-2a} - 1) = 2$.