login
A391887
Alternately add and multiply the last two terms starting with 2, 1.
0
2, 1, 3, 3, 6, 18, 24, 432, 456, 196992, 197448, 38895676416, 38895873864, 1512881323731695591424, 1512881323770591465288, 2288809899755012359448064967916189926490112, 2288809899755012359449577849239960517955400
OFFSET
0,1
COMMENTS
Uses the Lucas seed (2,1) instead of the Fibonacci seed (0,1) for generation.
FORMULA
a(n) = a(n-1) + a(n-2) if n is even, a(n) = a(n-1) * a(n-2) if n is odd; a(0)=2, a(1)=1.
MATHEMATICA
a[n_] := a[n] = If[EvenQ[n], a[n-1] + a[n-2], a[n-1] * a[n-2]]; a[0] = 2; a[1] = 1; Array[a, 17, 0] (* Amiram Eldar, Dec 22 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Adolf Cusmariu, Dec 22 2025
STATUS
approved