login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

6th-largest term in n-th row of Stern's diatomic triangle A002487.
5

%I #11 Jun 20 2022 05:40:00

%S 2,8,15,26,45,75,121,199,322,542,877,1427,2309,3739,6050,9790,15841,

%T 25632,41473,67105,108578,175683,284261,459944,744205,1204149,1948354,

%U 3152503,5100857,8253360

%N 6th-largest term in n-th row of Stern's diatomic triangle A002487.

%H Jennifer Lansing, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL17/Lansing/lansing2.html">Largest Values for the Stern Sequence</a>, Journal of Integer Sequences, Vol. 17 (2014), Article 14.7.5.

%o (Python)

%o from functools import reduce

%o from itertools import product

%o 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

%Y Cf. A002487, A244472, A244473, A244474, A244475.

%K nonn,more

%O 4,1

%A _N. J. A. Sloane_, Jul 01 2014

%E a(24)-a(33) from _Chai Wah Wu_, Jun 19 2022