login
A380588
Split A377091 into sublists consisting of runs of terms with the same sign. Then a(n) is max(b) - min(b), where b is the n-th sublist.
3
0, 1, 1, 2, 1, 2, 7, 4, 5, 4, 5, 9, 7, 12, 7, 8, 9, 10, 9, 10, 14, 12, 22, 12, 13, 14, 15, 14, 15, 16, 17, 16, 17, 37, 19, 20, 19, 20, 21, 22, 21, 22, 23, 24, 50, 25, 26, 26, 27, 29, 29, 29, 29, 29, 32, 30, 5, 34, 26, 3, 34, 32, 1, 4, 32, 31, 33, 34, 3, 36, 32, 37, 38, 1, 39
OFFSET
1,4
EXAMPLE
A377091 with terms grouped by sign begins:
(0) (1 2) (-2 -1) (3 4 5) (-4 -3) (6 7 8) (-8 -7 -6 -5 -9 -10 -11 -12) ...
And the corresponding terms of the present sequence are therefore:
0 1 1 2 1 2 7 ...
MATHEMATICA
(* A377091list is defined at A377091 *)
Map[Max[#] - Min[#] &, Most[SplitBy[A377091list[2000], Sign]]]
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Paolo Xausa, Jan 27 2025
STATUS
approved