OFFSET
1,2
FORMULA
a(2n) = 3*a(2n-1) - a(n) for n >= 1; a(2n+1) = 3*a(2n) for n >= 1.
MAPLE
a:=proc(n) if n=1 then 1 elif n mod 2 = 0 then 3*a(n-1)-a(n/2) else 3*a(n-1) fi end: seq(a(n), n=1..31); # Emeric Deutsch, Aug 08 2005
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
TORSTEN.SILLKE(AT)LHSYSTEMS.COM
EXTENSIONS
More terms from Emeric Deutsch, Aug 08 2005
STATUS
approved