login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 11 06:34 EDT 2024. Contains 372388 sequences. (Running on oeis4.)