OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..3310
FORMULA
Binomial transform of A001511, the "ruler" or Tower of Hanoi sequence.
a(2^n-1) = 2*a(2^n-2) for n > 1. - A.H.M. Smeets, May 08 2019
EXAMPLE
a(4) = 13 = 1*1 + 3*2 + 3*1 + 1*3, where the Tower of Hanoi sequence = (A001511): 1, 2, 1, 3, 1, 2, 1, 4...
MAPLE
f:= n -> add(padic:-ordp(2*k, 2)*binomial(n-1, k-1), k=1..n):
map(f, [$1..100]); # Robert Israel, Dec 02 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, May 02 2005
EXTENSIONS
More terms from N. J. A. Sloane, May 03 2008
STATUS
approved