OFFSET
0,4
COMMENTS
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 50000 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 -1 2
3 2 3
4 3 1
5 -2 5
6 -3 1
7 -4 1
8 4 8
9 5 1
10 6 1
11 7 1
12 -6 13
13 -5 1
14 -7 2
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
sign,new
AUTHOR
Rémy Sigrist, Oct 16 2024
STATUS
approved