|
|
A244476
|
|
6th-largest term in n-th row of Stern's diatomic triangle A002487.
|
|
5
|
|
|
2, 8, 15, 26, 45, 75, 121, 199, 322, 542, 877, 1427, 2309, 3739, 6050, 9790, 15841, 25632, 41473, 67105, 108578, 175683, 284261, 459944, 744205, 1204149, 1948354, 3152503, 5100857, 8253360
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
4,1
|
|
LINKS
|
|
|
PROG
|
(Python)
from functools import reduce
from itertools import product
def A244476(n): return sorted(set(sum(reduce(lambda x, y:(x[0], x[0]+x[1]) if y else (x[0]+x[1], x[1]), k, (1, 0))) for k in product((False, True), repeat=n)), reverse=True)[5] # Chai Wah Wu, Jun 19 2022
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|