Sum of Squares Function r_2(n) – Number Theory Analysis

analytic-number-theorynumber theory

Let $r_2(n)$ denote the number of representations of $n$ as a sum of two squares.

What is known about the sum of squares of this function,

$\sum_{i=1}^n r_2(i)^2$

In particular is anything known about the asymptotics as $n \rightarrow \infty$?

Best Answer

Asymptotics are known for all integer moments of $r_2$: for any $m \ge 1$, there is an explicit constant $a_m$ such that $\sum_{n \le x} r_2(n)^m \sim a_m\cdot x\,(\log x)^{2^{m-1}-1}$. ($m=0$ also holds if we interpret $0^m$ as $0$.)

This result, including the precise constant (and a uniform generalization to other positive binary quadratic forms), can be found in V. Blomer and A. Granville, “Estimates for representation numbers of quadratic forms”, Duke Math. J. 135 (2006). Here's the PDF.

Related Question