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.

A076291 a(n) = A002977(n+1) - A002977(n).

Original entry on oeis.org

2, 1, 3, 2, 1, 3, 2, 4, 2, 1, 5, 1, 3, 8, 1, 3, 2, 1, 9, 2, 1, 5, 1, 3, 12, 2, 1, 3, 2, 4, 2, 1, 17, 4, 2, 1, 3, 6, 2, 1, 5, 1, 3, 20, 4, 2, 1, 5, 1, 3, 8, 4, 2, 1, 3, 9, 21, 8, 4, 2, 1, 5, 1, 3, 8, 1, 3, 2, 1, 9, 2, 1, 5, 1, 3, 36, 8, 4, 2, 1, 9, 2, 1, 5, 1, 3, 9, 3, 8, 4, 2, 1, 5, 1, 3, 14, 1, 3, 9, 29, 16
Offset: 1

Views

Author

Benoit Cloitre, Nov 06 2002

Keywords

Crossrefs

Cf. A002977.

Programs

  • Mathematica
    seq[max_] := Module[{s = Flatten[NestWhileList[Flatten[{2*# + 1, 3*# + 1}] &, 1, Min[#1] < max &]]}, Differences[Union[Select[s, # <= max &]]]]; seq[400000] (* Amiram Eldar, May 07 2022 *)