OFFSET
1,2
FORMULA
a(n+1)=3*a(n) for n=3 n of the form 3*2^k - 1, k>=2 . a(n+1)=2*a(n) otherwise. Hence a(n)=3*(3/2)^floor((log(n/3))/log(2))*2^n.
PROG
(PARI) a(n)=3*(3/2)^floor((log(n)-log(3))/log(2))*2^n
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 14 2003
STATUS
approved