OFFSET
0,3
EXAMPLE
a(0) = 0 * 1 = 0;
a(1) = 0 + 1 = 1;
a(2) = 1 * 2 = 2;
a(3) = 2 + 3 = 5;
a(4) = 5 * 5 = 25.
MATHEMATICA
a[0] = 0; a[n_] := a[n] = If[EvenQ[n], a[n-1] * Fibonacci[n+1], a[n-1] + Fibonacci[n+1]]; Array[a, 22, 0] (* Amiram Eldar, Mar 28 2020 *)
PROG
(Python)
from sympy import fibonacci
f = [fibonacci(n) for n in range(200)]
def a(n):
out = f[0] * f[1]
for i in range(1, n+1):
if i%2:
out += f[i+1]
else:
out *= f[i+1]
return out
CROSSREFS
KEYWORD
nonn
AUTHOR
Adnan Baysal, Mar 27 2020
STATUS
approved