OFFSET
0,3
COMMENTS
This sequence is a variant of A377091 where, beyond the initial term a(0) = 0, the sign of the terms alternates.
Will every integer appear in the sequence?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Colored scatterplot of the sequence for n = 0..10000 (where the color is function of Sum_{k = 0..n-1} sign(a(k+1)-a(k)) * sqrt(abs(a(k+1)-a(k))))
Rémy Sigrist, PARI program
EXAMPLE
The first terms are:
n a(n) |a(n)-a(n-1)|
-- ---- -------------
0 0 N/A
1 1 1^2
2 -3 2^2
3 6 3^2
4 -10 4^2
5 15 5^2
6 -1 4^2
7 3 2^2
8 -6 3^2
9 10 4^2
10 -15 5^2
11 21 6^2
12 -4 5^2
13 5 3^2
14 -11 4^2
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
sign
AUTHOR
Rémy Sigrist, Dec 29 2024
STATUS
approved