login
A129757
a(n) = ceiling((2^n + 1 - 2*floor(2^(n/2)))/2).
0
1, 1, 3, 5, 12, 25, 54, 113, 235, 481, 980, 1985, 4007, 8065, 16204, 32513, 65175, 130561, 261421, 523265, 1047129, 2095105, 4191409, 8384513, 16771425, 33546241, 67097280, 134201345, 268412287, 536838145, 1073695485, 2147418113
OFFSET
1,3
PROG
(PARI) a(n) = ceil((2^n + 1 - 2*floor(2^(n/2)))/2); \\ Michel Marcus, Aug 07 2020
CROSSREFS
Sequence in context: A303587 A151524 A030270 * A135019 A141685 A017921
KEYWORD
nonn,easy,less
AUTHOR
Roger L. Bagula, May 15 2007
EXTENSIONS
Edited by Michel Marcus and Joerg Arndt, Aug 07 2020
STATUS
approved