OFFSET
1,4
COMMENTS
This sequence is likely to contain every signed integer.
LINKS
Rémy Sigrist, PARI program for A316995
EXAMPLE
The first terms, alongside the value k such that a(n+1) = a(n) + (-2)^k, are:
n a(n) k
-- ---- --
1 0 0
2 1 1
3 -1 1
4 -3 0
5 -2 2
6 2 0
7 3 0
8 4 3
9 -4 1
10 -6 0
11 -5 1
12 -7 1
13 -9 4
14 7 1
15 5 0
16 6 2
17 10 1
18 8 0
19 9 2
20 13 1
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
sign
AUTHOR
Rémy Sigrist, Jul 18 2018
STATUS
approved