OFFSET
0,2
COMMENTS
This sequence is a variant of A277618 allowing negative values.
Will every integer appear in the sequence?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..1000
Rémy Sigrist, PARI program
EXAMPLE
The first terms are:
n a(n) |a(n)-a(n-1)|
-- ---- -------------
0 0 N/A
1 2 2
2 -1 3
3 1 2
4 -2 3
5 3 5
6 -4 7
7 -6 2
8 -3 3
9 4 7
10 6 2
11 -5 11
12 -7 2
13 -9 2
14 8 17
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
sign
AUTHOR
Rémy Sigrist, Oct 16 2024
STATUS
approved