OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{k >= 0, 2^k <= n} binomial(n - 2^k + k, k). - Andrew Howroyd, Aug 09 2018
EXAMPLE
a(7) = 17 = sum of row 7 terms of A129503: (1 + 6 + 0 + 10 + 0 + 0 + 0).
PROG
(PARI) a(n)=sum(k=0, logint(n, 2), binomial(n-2^k+k, k)) \\ Andrew Howroyd, Aug 09 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Apr 18 2007
EXTENSIONS
Offset and a(9) corrected and a(11)-a(47) from Andrew Howroyd, Aug 09 2018
STATUS
approved