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

A181383
The (2^n)-th lucky number.
1
1, 3, 9, 25, 67, 151, 349, 805, 1831, 4069, 9063, 19767, 42975, 92829, 199123, 425229, 904225, 1915381, 4044235, 8513505, 17872759, 37432615, 78225409, 163146639, 339638307, 705882493, 1464816541, 3035420871, 6281814787, 12984437515, 26808298093, 55291335127
OFFSET
0,2
LINKS
FORMULA
a(n) = A000959(2^n) = A000959(A000079(n)).
MATHEMATICA
t = 2 Range@9000000 - 1; f[n_] := Block[{k = t[[n]]}, t = Delete[t, Table[{k}, {k, k, Length@t, k}]]]; Do[f@n, {n, 2, 100000}]; Table[ t[[2^n]], {n, 0, 20}]
PROG
(Perl) use ntheory ":all"; say "$_ ", nth_lucky(1 << $_) for 0..25; # Dana Jacobsen, Dec 21 2018
CROSSREFS
KEYWORD
hard,nonn
AUTHOR
Robert G. Wilson v, Oct 16 2010
EXTENSIONS
a(21)-a(25) from Donovan Johnson, Oct 16 2010
a(26)-a(31) from Dana Jacobsen, Dec 21 2018
STATUS
approved