We define $$a_N =\# \{ n \leq N, \exists (n_1,n_2) \in \mathbb{N}^2, n = n_1^2 + n_2^2 \}.$$ Can we have the exact value of $a_N$, or at least an asymptotic behavior such as $$ \alpha N \leq a_N \leq \beta N$$ for some constant $\alpha,\beta>0$? (Of course, the existence of $\beta$ is obvious since $a_N \leq N+1$. I am particularly interested by the existence of a constant $\alpha$.)
Thanks for your attention.
E. Landau, "Über die Einteilung der positiven ganzen Zahlen in vier Klassen nach der Mindestzahl der zu ihrer additiven Zusammensetzung erforderlichen Quadrate," Arch. Math. Phys. (3), v. 13, 1908, pp. 305-312 proved that the number of sums of two squares up to $x$ is asymptotic to $Bx/\sqrt{\log x}$, where $$B={1\over\sqrt2}\prod_{p\equiv3\bmod4}(1-p^{-2})^{1/2}$$ See also P. Shiu, Counting sums of two squares: the Meissel-Lehmer method, Math. Comp. volume 47, number 175, July 1986, pages 351-360, available at http://www.ams.org/journals/mcom/1986-47-175/S0025-5718-1986-0842141-1/S0025-5718-1986-0842141-1.pdf