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”).

A232054
Complement of A056875.
2
2, 4, 7, 8, 12, 15, 16, 17, 22, 25, 26, 29, 31, 32, 35, 37, 39, 45, 48, 49, 52, 54, 56, 57, 61, 63, 64, 66, 67, 72, 75, 77, 78, 81, 86, 87, 90, 94, 98, 99, 100, 104, 107, 108, 110, 112, 115, 116, 117, 120, 124, 126, 127, 128, 130, 135, 137, 138, 140, 144
OFFSET
1,1
LINKS
MATHEMATICA
nmax = 200; S = Range[nmax]; S0 = {}; i = 1;
While[S != S0, ii = NestWhileList[#+S[[#]]&, i+S[[i]], # <= Length[S]&]; S0 = S; S = Delete[S, List /@ Select[ii, # <= Length[S]&]]; i++];
Complement[Range[nmax], S] (* Jean-François Alcover, Dec 11 2019 *)
PROG
(Haskell)
a232054 n = a232054_list !! (n-1)
a232054_list = c [1..] a056875_list where
c (u:us) vs'@(v:vs) = if u == v then c us vs else u : c us vs'
CROSSREFS
Sequence in context: A060406 A001839 A087686 * A216431 A233271 A088413
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 17 2013
STATUS
approved