OFFSET
0,1
COMMENTS
a(n) is a multiple of 3 for n > 0.
MAPLE
PROG
(Python)
from itertools import count, islice, accumulate
def A141479_gen(): # generator of terms
yield from (2, 3)
blist = (0, 1)
for n in count(0):
yield (blist := tuple(accumulate(reversed(blist), initial=0)))[-1] + (2, 1, 1, 2)[n & 3]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Aug 09 2008
EXTENSIONS
Extended by R. J. Mathar, Sep 12 2008
STATUS
approved