OFFSET
1
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
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) ...
Their absolute value is:
(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:
1 0 1 0 1 0 0 ...
MATHEMATICA
(* A377091list is defined at A377091 *)
Map[Boole[# == Range[Max[#], Min[#], -1]] &, Abs[Most[SplitBy[A377091list[2000], Sign]]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa, Jan 24 2025
STATUS
approved
