A244476 6th-largest term in n-th row of Stern's diatomic triangle A002487.
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
Offset: 4
Links
- Jennifer Lansing, Largest Values for the Stern Sequence, Journal of Integer Sequences, Vol. 17 (2014), Article 14.7.5.
Programs
-
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
Extensions
a(24)-a(33) from Chai Wah Wu, Jun 19 2022