OFFSET
1,2
FORMULA
a(n) = a(A006257(n-2)) + Sum_{i = 1..n-1} a(i) for n >= 3 with a(1) = 1 and a(2) = 2. - Petros Hadjicostas, Sep 24 2019
MAPLE
a := proc(n) option remember; if n<3 then return [1, 2][n] fi; add(a(i), i=1..n-1) + a(2*(n-2) - Bits:-Iff(n-2, n-2)) end: seq(a(n), n=1..37); # Petros Hadjicostas, Sep 24 2019 by modifying a program by Peter Luschny
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited and more terms from Petros Hadjicostas, Sep 24 2019
STATUS
approved