OFFSET
1,1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000 (first 209 terms from N. J. A. Sloane)
Rémy Sigrist, C++ program
EXAMPLE
Terms 0 through 14 of A377091 are 0, 1, 2, -2, -1, 3, 4, 5, -4, -3, 6, 7, 8, -8, -7, and the pairs 2, -2 and 8, -8 correspond to a(1) = 2 and a(2) = 12.
MATHEMATICA
(* A377091list is defined at A377091 *)
PositionIndex[Differences[Abs[A377091list[10000]]]][0] - 1 (* Paolo Xausa, Jan 22 2025 *)
PROG
(C++) // See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 19 2025
STATUS
approved
