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.

A325539 a(n) is the least number not 2*a(m)+1 or 3*a(m)+2 for any m < n.

Original entry on oeis.org

1, 2, 4, 6, 7, 10, 11, 12, 16, 17, 18, 19, 22, 24, 26, 27, 28, 29, 30, 31, 34, 36, 40, 41, 42, 43, 44, 46, 47, 48, 51, 52, 54, 58, 60, 62, 64, 65, 66, 67, 70, 71, 72, 75, 76, 77, 78, 79, 82, 84, 88, 90, 91, 94, 96, 98, 99, 100, 101, 102, 106, 107, 108, 111
Offset: 1

Views

Author

Clark Kimberling, May 07 2019

Keywords

Examples

			The sequence necessarily starts with 1.  The next 2 terms are determined as follows:  because a(1) = 1, the numbers 3 and 5 are disallowed, so that a(2) = 2, whence the number 8 is disallowed, and a(3) = 4.  See A325417 for a guide to related sequences.
		

Crossrefs

Programs

  • Mathematica
    a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1,
    Apply[Or, Map[MemberQ[a, #] &,  Select[Flatten[{(# - 1)/2, (# - 2)/3}],
    IntegerQ]]] &]], {200}]; a       (* A325539 *)
    Complement[Range[Last[a]], a]    (* A325540 *)
    (* Peter J. C. Moses, Apr 25 2019 *)