login
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