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.

Showing 1-2 of 2 results.

A331135 a(n) = Sum_{primes p <= n} r_2(p-1)/4, where r_2(n) = A004018(n).

Original entry on oeis.org

0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17, 17, 17, 17, 17
Offset: 1

Views

Author

N. J. A. Sloane, Jan 11 2020

Keywords

Crossrefs

Programs

  • Mathematica
    Accumulate[Table[If[PrimeQ[n], SquaresR[2, n-1], 0], {n, 1, 100}]/4] (* Amiram Eldar, Apr 23 2024 *)

A331136 a(n) = Sum_{primes p < n} r_2(n-p)/4, where r_2(n) = A004018(n).

Original entry on oeis.org

0, 0, 1, 2, 1, 2, 4, 3, 2, 3, 3, 6, 4, 2, 7, 5, 3, 6, 5, 7, 7, 7, 7, 7, 5, 3, 10, 10, 6, 8, 9, 9, 9, 7, 4, 13, 9, 6, 15, 7, 7, 14, 11, 10, 11, 9, 12, 16, 9, 7, 12, 13, 11, 15, 14, 13, 17, 12, 7, 16, 11, 8, 23, 12, 9, 17, 14, 16, 18, 15, 15, 21, 12, 10, 17, 19, 16, 20, 16, 11, 22, 15, 14, 27, 14, 11, 29, 20, 12, 18
Offset: 1

Views

Author

N. J. A. Sloane, Jan 11 2020

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Sum[SquaresR[2, n - p]/4, {p, Select[Range[n - 1], PrimeQ]}]; Array[a, 100] (* Amiram Eldar, Apr 23 2024 *)
Showing 1-2 of 2 results.