OFFSET
0,2
FORMULA
a(n) = Sum_{k=0..n} 2^(n*(n-1)/2 - k*(k-1)/2).
G.f. A(x) satisfies: A(x) = 1/(1 - x) + x * A(2*x). - Ilya Gutkovskiy, Jun 06 2020
a(n) = a(n-1) * 2^(n-1) + 1 for n > 0 and a(0) = 1. - Werner Schulte, Oct 17 2023
MATHEMATICA
Table[Sum[2^((n(n-1))/2-(k(k-1))/2), {k, 0, n}], {n, 0, 20}] (* Harvey P. Dale, Jul 05 2023 *)
PROG
(PARI) a(n)=sum(k=0, n, 2^((n-k)*(n+k-1)/2))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Mar 14 2006
STATUS
approved