Consider a number on the form, $N=4^x + k^2$ for integer $x \geq 1$ and odd integer $k \geq 1$, so $N=4^x + (2y+1)^2 = 4^x + 4y^2 + 4y+ 1$ for integer $y \geq 0$. Clearly, $N \equiv 1 \pmod 4$.
Are all prime factors of $N$ on the form $4z+1$?
It is clearly the case when $N$ is prime, and appears to be like that for all other values of $x$ and $y$ that I have tried.
As I understand it Fermat's theorem on sums on two squares only says that $N \equiv 1 \pmod 4$ as the number is expressed as a sum of two squares (although it is also clear from above). The Brahmagupta–Fibonacci identity says that there is an even number of prime factors on the form $4z+3$ when $N$ can be written as a sum of two squares. I know that $n^2+1$ only has prime factors on the form $4z+1$, so for $k=1$ it holds.
However, I do not manage to generalize this to the general case. Nor am I sure that it actually holds (which is the major issue here, I want to state that) although simulations have yet to find a case where it does not hold.