OFFSET
1,2
COMMENTS
A139486(n) = Sum_{j=1..2^n} a(j).
FORMULA
For odd n, a(n) = Sum_{j=0..k} b(j) * A139486(j), where n = Sum_{j=0..k} b(j) * 2^j is the binary representation of n. For even n, a(n) = a(n-1) + 1. - Max Alekseyev, Oct 24 2008
PROG
(PARI) { A139485(n) = local(b); if(n%2==0, return(a(n-1)+1)); b=Vecrev(binary(n)); sum(j=1, #b, b[j]*prod(i=0, j-2, 2^i+2)) } \\ Max Alekseyev, Oct 24 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 23 2008
EXTENSIONS
More terms from Max Alekseyev, Oct 24 2008
STATUS
approved