OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 17 2013
STATUS
approved