OFFSET
0,3
FORMULA
a(0) = 1, for n > 0: a(n) = a(n - 1) * (Length of binary representation of n) = a(n - 1) * A070939(n).
EXAMPLE
a(4) = 12 because a(3) = 4 and 4 in binary is 100 (3 bits), and thus 4 * 3 = 12.
MATHEMATICA
nxt[{n_, a_}]:={n+1, a*IntegerLength[n+1, 2]}; Transpose[NestList[nxt, {0, 1}, 30]][[2]] (* Harvey P. Dale, Oct 11 2015 *)
PROG
(Python)
t = 1
for n in range(1, 33):
print t,
t *= len(bin(n))-2
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, Jul 29 2012
STATUS
approved