login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A379882
a(n) is the length of the n-th maximal run of consecutive terms of A377091 with the same sign.
1
1, 2, 2, 3, 2, 3, 8, 5, 6, 5, 6, 10, 8, 13, 8, 9, 10, 11, 10, 11, 15, 13, 23, 13, 14, 15, 16, 15, 16, 17, 18, 17, 18, 38, 20, 21, 20, 21, 22, 23, 22, 23, 24, 25, 50, 26, 26, 26, 28, 28, 28, 29, 29, 29, 31, 29, 5, 32, 26, 4, 32, 28, 2, 3, 33, 31, 34, 34, 4, 36
OFFSET
1,2
LINKS
Rémy Sigrist, C++ program
EXAMPLE
A377091 begins:
0, 1, 2, -2, -1, 3, 4, 5, -4, -3, 6, 7, 8, -8.
So the present sequence begins:
1, 2, 2, 3, 2, 3.
PROG
(C++) // See Links section.
CROSSREFS
Cf. A377091.
Sequence in context: A236433 A117122 A122828 * A242213 A035213 A340224
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 05 2025
STATUS
approved