OFFSET
1,4
COMMENTS
The sequence zigzags and A000124 corresponds to the indices of its extrema.
Will this sequence change sign infinitely often?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10012
Rémy Sigrist, C++ program for A329724
Rémy Sigrist, Scatterplot of the first 39582754 terms
EXAMPLE
The first terms, alongside the corresponding k and d_k, are:
n a(n) k d_k
-- ---- --- ---
1 0 N/A N/A
2 1 1 1
3 -1 2 -2
4 -3 2 -2
5 2 3 5
6 7 3 5
7 12 3 5
8 11 4 -1
9 10 4 -1
10 9 4 -1
11 8 4 -1
12 13 5 5
13 18 5 5
14 23 5 5
15 28 5 5
16 33 5 5
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
sign,look
AUTHOR
Rémy Sigrist, Nov 19 2019
STATUS
approved