OFFSET
1,1
EXAMPLE
a(1) = 2 * 3 = 6;
a(2) = 6 + 5 = 11;
a(3) = 11 * 7 = 77.
PROG
(Python)
from sympy import primerange
p = list(primerange(1, 1000))
def a(n):
out = p[0] * p[1]
for i in range(1, n):
if i % 2:
out += p[i + 1]
else:
out *= p[i + 1]
return out
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Adnan Baysal, Feb 18 2020
STATUS
approved