login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A045989
a(n) = A045954(n)/2.
1
1, 2, 3, 5, 6, 9, 10, 11, 13, 17, 18, 21, 22, 25, 26, 27, 29, 34, 35, 38, 42, 45, 49, 50, 51, 54, 57, 58, 59, 65, 66, 69, 70, 74, 75, 82, 85, 86, 89, 91, 93, 98, 99, 106, 107, 109, 114, 115, 117, 122, 123, 130, 131, 134, 139, 141, 145, 149
OFFSET
1,2
LINKS
MATHEMATICA
seq[max_] := Module[{lst = Range[2, max, 2], i = 2, len}, While[i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++]; lst/2]; seq[300] (* Amiram Eldar, Mar 20 2024, after Robert G. Wilson v at A045954 *)
CROSSREFS
Cf. A045954.
Sequence in context: A047449 A162923 A107040 * A129832 A166687 A189224
KEYWORD
nonn
STATUS
approved