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.

A126845 Ramanujan numbers (A000594) read mod 23.

Original entry on oeis.org

1, 22, 22, 0, 0, 1, 0, 1, 0, 0, 0, 0, 22, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 22, 1, 1, 1, 0, 22, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1, 0, 22, 0, 0, 0, 0, 22, 22, 1, 1, 22, 0, 0, 0, 22, 0, 0, 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0, 22, 0, 0, 22, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0
Offset: 1

Views

Author

N. J. A. Sloane, Feb 25 2007

Keywords

References

  • G. H. Hardy, Ramanujan, Twelve Lectures on Subjects Suggested by His Life and Work, Cambridge, 1940, p. 166.

Crossrefs

Programs

  • Mathematica
    a[n_] := Mod[RamanujanTau[n], 23]; Array[a, 100] (* Amiram Eldar, Jan 04 2025 *)
  • PARI
    a(n) = ramanujantau(n) % 23; \\ Amiram Eldar, Jan 04 2025

Formula

a(n) = 0 if Legendre symbol (n,23) = A011586(n) = -1 (Hardy, 1940). - Amiram Eldar, Jan 04 2025