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.

A021078 Decimal expansion of 1/74.

Original entry on oeis.org

0, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5, 1, 3, 5
Offset: 0

Views

Author

N. J. A. Sloane, Dec 11 1996

Keywords

Programs

  • Maple
    a:= n-> `if`(n=0, 0, irem(2*n-1, 6)): seq(a(n), n=0..99); # Zerinvary Lajos, Nov 30 2006
  • Mathematica
    Table[Mod[2 n - 1, 6] - 5 Floor[1/(n+1)], {n, 0, 100}] (* Wesley Ivan Hurt, Apr 23 2014 *)

Formula

a(n) = (2n-1) mod 6, for n > 0. - Wesley Ivan Hurt, Apr 23 2014