A379880 a(n) is the length of the n-th maximum run of consecutive terms of A377091 in arithmetic progression with common difference 1 or -1.
3, 2, 3, 2, 3, 4, 4, 1, 4, 6, 1, 4, 6, 1, 3, 2, 3, 1, 8, 4, 9, 1, 4, 3, 9, 1, 9, 11, 1, 9, 11, 1, 3, 2, 3, 2, 3, 1, 13, 1, 1, 4, 3, 14, 1, 4, 8, 14, 1, 1, 2, 3, 8, 16, 1, 1, 2, 3, 8, 16, 1, 16, 18, 1, 16, 18, 1, 3, 2, 3, 2, 3, 2, 3, 19, 1, 4, 15, 21, 1, 4, 15
Offset: 1
Keywords
Examples
A377091 begins: 0, 1, 2, -2, -1, 3, 4, 5, -4, -3, 6, 7, 8, -8, -7, -6, -5, -9. So the present sequence begins: 3, 2, 3, 2, 3, 4.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, C++ program
Programs
-
Mathematica
(* A377091list is defined at A377091 *) Map[Length, Most[Split[A377091list[500], Abs[#2 - #1] == 1 &]]] (* Paolo Xausa, Jan 20 2025 *)
Comments