OFFSET
0,2
FORMULA
a(n)=a(n-1)*a(n-2) if n is odd, a(n)=a(n-1)*a(n-4) if n is even.
MAPLE
For given n, this generates terms with index 0 through 2n: a[0] := 1; a[1] := 2; a[2] := 3; for i from 1 to n-1 do a[2*i+1] := a[2*i]*a[2*i-1]; a[2*i+2] := a[2*i+1]*a[2*i-2]; od; # Christopher N. Swanson (cswanson(AT)ashland.edu), Jul 22 2003
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Floor van Lamoen, Mar 21 2002
EXTENSIONS
More terms from Christopher N. Swanson (cswanson(AT)ashland.edu), Jul 22 2003
STATUS
approved