OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..808
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
an = 1
for n in count(1):
yield an
if n&1: an += (n if n&3 == 1 else -n)
else: an *= n
print(list(islice(agen(), 30))) # Michael S. Branicky, Aug 09 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 04 2003
EXTENSIONS
More terms from Ray G. Opao, Apr 15 2004
a(26) and beyond from Michael S. Branicky, Aug 09 2022
STATUS
approved