OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
EXAMPLE
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.
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 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 07 2019
STATUS
approved