OFFSET
1,7
COMMENTS
MAPLE
G:=[seq(n, n=0..30)];
m:=1;
f:=proc(n) option remember; global m, G; local k, r, j, np;
k:=1+floor(log[2](n)); np:=2^k-n;
if np=1 then r:=0; j:=0; else r:=1+floor(log[2](np-1)); j:=2^r-np; fi;
if j=0 then G[k-r-1+1]; else m*G[k-r-1+1]*f(j); fi;
end;
[seq(f(n), n=1..120)];
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 25 2014
STATUS
approved