How can I prove that if $f_n$ is a term of the Fibonacci sequence divisible by $4$ and if $$f_{n-1}^2=(f_n/2)^2+h^2,$$ $h\in\Bbb Z^+$ then $n=6$?
I know that since $\gcd(f_k,f_{k+1})=1$ for every $k\in\Bbb N$ then $h$ must be odd and that if $h=2m+1$ with $m\in\Bbb Z$ then $h=(m+1)^2-m^2$. But I cannot assume that $f_{n-1}=(f_n/2)+1$ so I don't know how to proceed.
Any help is really appreciated.
Note that $$h^2=f_{n-1}^2-(f_n/2)^2=(f_{n-1}-f_n/2)(f_{n-1}+f_n/2)$$ Now \begin{align*}\gcd(f_{n-1}-f_n/2,f_{n-1}+f_n/2)&=\gcd(f_{n-1}-f_n/2,f_n)=\gcd(f_{n-1}-f_n/2,f_n/2)\\&=\gcd(f_{n-1},f_n/2)=1\end{align*} (the second step is allowed since $f_{n-1}-f_n/2$ must be odd and you already know the last step)
This means $f_{n-1}-f_n/2=f_{n-1}/2-f_{n-2}/2=f_{n-3}/2$ must be a perfect square, but it is well known this is only possible for $n=3$, $n=6$, or $n=9$. But only for $n=6$ is $f_{n-1}+f_n/2$ also a square.