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.

A348194 a(n) = A077767(n) - A077766(n).

Original entry on oeis.org

1, 0, 0, 1, 0, 0, -1, 2, -1, -1, 2, 1, -1, 2, 0, -1, -1, 0, 0, -1, 1, 3, 0, -1, 0, 1, -2, 1, 0, 0, 0, 1, -2, -1, 0, 1, -1, 4, 5, -2, -3, 3, -2, 1, 1, 0, -3, -1, 0, 3, -1, -2, 0, 3, -3, -2, 5, -3, 2, 0, -1, 5, -1, 0, -2, -1, 1, 3, -3, 3, 5, -5, 1, 3, -4, 4, 2, -2, -1, -3, 0, -1, 6, 1, -4, -3, 2, -4, -4, 2, 0, -1, 1, 1, -1, -1, 2, -1, 3, 1, 2, -2, 5, 1, -1
Offset: 1

Views

Author

Seiichi Manyama, Oct 06 2021

Keywords

Crossrefs

Programs

  • PARI
    a(n) = sum(k=n^2, (n+1)^2, (isprime(k)&&k%4==3)-(isprime(k)&&k%4==1));

Formula

a(n) = A348193(n+1) - A348193(n).