cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A333168 a(n) = Sum_{k=0..n} r_2(k^2 + 1), where r_2(k) is the number of ways of writing k as a sum of 2 squares (A004018).

Original entry on oeis.org

4, 8, 16, 24, 32, 40, 48, 60, 76, 84, 92, 100, 116, 132, 140, 148, 156, 172, 196, 204, 212, 228, 244, 260, 268, 276, 284, 300, 316, 324, 340, 356, 380, 396, 412, 420, 428, 444, 468, 476, 484, 496, 512, 536, 552, 560, 576, 608, 624, 632, 648, 656, 672, 688, 696
Offset: 0

Views

Author

Amiram Eldar, Mar 09 2020

Keywords

Examples

			a(0) = r_2(0^2 + 1) = r_2(1) = A004018(1) = 4.
a(1) = r_2(0^2 + 1) + r_2(1^1 + 1) = r_2(1) + r_2(2) = A004018(1) + A004018(2) = 4 + 4 = 8.
		

References

  • Steven R. Finch, Mathematical Constants II, Encyclopedia of Mathematics and Its Applications, Cambridge University Press, Cambridge, 2018, p. 166.

Crossrefs

Partial sums of A333167.

Programs

  • Mathematica
    Accumulate @ Table[SquaresR[2, k^2 + 1], {k, 0, 100}]

Formula

a(n) ~ (8/Pi) * n * log(n).