Let $ n,x,y \in \Bbb N$.Show that each divisor of $(n^2+1)$ has got the form $x^2+y^2$.
My first thought: $x^2+y^2|n^2+1$
$\Leftrightarrow n^2\equiv-1\pmod {x^2+y^2}$
here we can use the quadratic residue.
But I thought we should better say:
Let $d \in \Bbb Z$ be a divisor of $(n^2+1)$ we know that if $d=p_1\cdots p_n$ , where $p_i$ is prime, than each $p_i$ is a divisor of $n^2+1$. Than we had to show that each each product of primes can be represented as the sum of two quadratics, right ?
Do can I use the quadratic residue or do I need another important fact ?
I JUST want a hint ! Thanks !