OFFSET
1,4
FORMULA
a(n) = (1/2)*A049959(n) for n > 3. - Petros Hadjicostas, Apr 27 2020
MAPLE
s := proc(n) option remember; `if`(n < 1, 0, a(n) + s(n - 1)) end proc:
a := proc(n) option remember;
`if`(n < 4, [1, 1, 1][n], s(n - 1) + a(-2^ceil(log[2](n - 1)) + 2*n - 2)):
end proc:
seq(a(n), n = 1..40); \\ Petros Hadjicostas, Apr 25 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Petros Hadjicostas, Apr 25 2020
STATUS
approved