OFFSET
0,3
COMMENTS
This sequence is a variant of A277616 allowing negative values.
Will every integer appear in the sequence?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Scatterplot of the first 10000 terms of the partial sums
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 2 1^2
3 -2 2^2
4 -1 1^2
5 3 2^2
6 4 1^2
7 5 1^2
8 -4 3^2
9 -3 1^2
10 6 3^2
11 7 1^2
12 8 1^2
13 -8 4^2
14 -7 1^2
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
sign,look
AUTHOR
Rémy Sigrist, Oct 16 2024
STATUS
approved