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.

A325601 Positions of 2 in A325599.

Original entry on oeis.org

4, 6, 8, 12, 15, 19, 22, 26, 29, 31, 33, 37, 40, 42, 46, 49, 51, 53, 57, 60, 62, 66, 69, 71, 73, 77, 80, 82, 86, 89, 93, 96, 100, 103, 105, 107, 111, 114, 116, 120, 123, 127, 130, 132, 134, 138, 141, 143, 147, 150, 154, 157, 161, 164, 166, 168, 172, 175, 177
Offset: 1

Views

Author

Clark Kimberling, May 11 2019

Keywords

Comments

All the terms of A325599 are in {1,2}, so that A325600 and A325601 are a complementary pair.

Crossrefs

Programs

  • Mathematica
    mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]); a = {1}; Do[AppendTo[a, mex[Rest[2 a] + Most[a], Last[a] + 1]], {60}]; a  (* A325597 *)
    c = Complement[Range[Last[a]], a]  (* A325598 *)
    da = Differences[a] (* A325599 *)
    Flatten[Position[da, 1]]  (* A325600 *)
    Flatten[Position[da, 2]]  (* A325601 *)
    (* Peter J. C. Moses, May 07 2019 *)