A379882 a(n) is the length of the n-th maximal run of consecutive terms of A377091 with the same sign.
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
Keywords
Examples
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.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, C++ program
Crossrefs
Cf. A377091.
Programs
-
Mathematica
(* A377091list is defined at A377091 *) Map[Length, Most[SplitBy[A377091list[2000], Sign]]] (* Paolo Xausa, Jan 24 2025 *)
Comments