|
|
|
|
3, 3, 5, 12, 37, 138, 605, 3042, 17257, 108978, 758105, 5759322, 47439277, 421090218, 4006875605, 40686781602, 439122198097, 5019624693858, 60582649901105, 769831261587882, 10273367294485717, 143649246839399898, 2100196647406842605, 32044492213621026162, 509357494543973054137
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(Python)
from itertools import accumulate, islice
def A231895_gen(): # generator of terms
yield 3
blist = (0, 1)
while True:
yield blist[-1]+2*(blist := tuple(accumulate(reversed(blist), initial=0)))[-1]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|