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.

A081746 a(1)=1; for n>1, a(n)=a(n-1)-3 if n is already in the sequence, a(n)=a(n-1)+5 otherwise.

Original entry on oeis.org

1, 6, 11, 16, 21, 18, 23, 28, 33, 38, 35, 40, 45, 50, 55, 52, 57, 54, 59, 64, 61, 66, 63, 68, 73, 78, 83, 80, 85, 90, 95, 100, 97, 102, 99, 104, 109, 106, 111, 108, 113, 118, 123, 128, 125, 130, 135, 140, 145, 142, 147, 144, 149, 146, 143, 148, 145, 150
Offset: 1

Views

Author

Benoit Cloitre, Apr 05 2003

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := a[n] = If[n == 1, 1, If[MemberQ[Array[a, n-1], n], a[n-1] - 3, a[n-1] + 5]]; Array[a, 58] (* Jean-François Alcover, Oct 05 2018 *)

Formula

a(n) - n is periodic with period 648.

A081747 A081746(n) - n.

Original entry on oeis.org

0, 4, 8, 12, 16, 12, 16, 20, 24, 28, 24, 28, 32, 36, 40, 36, 40, 36, 40, 44, 40, 44, 40, 44, 48, 52, 56, 52, 56, 60, 64, 68, 64, 68, 64, 68, 72, 68, 72, 68, 72, 76, 80, 84, 80, 84, 88, 92, 96, 92, 96, 92, 96, 92, 88, 92, 88, 92, 88, 92, 88, 92, 88, 84, 88, 84, 88
Offset: 1

Views

Author

N. J. A. Sloane, Apr 08 2003

Keywords

Crossrefs

Formula

Periodic with period 648.
Showing 1-2 of 2 results.