OFFSET
4,1
LINKS
Jennifer Lansing, Largest Values for the Stern Sequence, Journal of Integer Sequences, Vol. 17 (2014), Article 14.7.5.
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
N. J. A. Sloane, Jul 01 2014
EXTENSIONS
a(24)-a(33) from Chai Wah Wu, Jun 19 2022
STATUS
approved