OFFSET
1,1
COMMENTS
Complement sequence of A054353. - Benoit Cloitre, Feb 07 2009
A054354(a(n)-1) = 0. - Reinhard Zumkeller, Aug 03 2013
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
FORMULA
a(n) is probably asymptotic to 3*n.
MAPLE
isA078649 := proc(n)
true;
else
false;
end if;
end proc:
A078649 := proc(n)
option remember;
if n = 1 then
2;
else
for a from procname(n-1)+1 do
if isA078649(a) then
return a;
end if;
end do:
end if;
end proc:
seq(A078649(n), n=1..50) ; # R. J. Mathar, Nov 15 2014
MATHEMATICA
a2 = {1, 2, 2}; Do[ a2 = Join[a2, {1+Mod[n-1, 2]}], {n, 3, 80}, {a2[[n]]}]; a3 = Accumulate[a2]; Complement[ Range[ Last[a3]], a3] (* Jean-François Alcover, Jun 18 2013 *)
PROG
(Haskell)
a078649 n = a078649_list !! (n-1)
a078649_list = map (+ 1) $ filter ((== 0) . a054354) [1..]
-- Reinhard Zumkeller, Aug 03 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Dec 14 2002
STATUS
approved