OFFSET
0,3
COMMENTS
Does this sequence contain infinitely many zeros? If so, A377091 would contain every positive and negative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, PARI program
FORMULA
|a(n+1) - a(n)| = 1.
EXAMPLE
The first terms, alongside A377091(n) and the corresponding v's, are:
n a(n) A377091(n) v's
-- ---- ---------- ------------
0 0 0 {}
1 1 1 {1}
2 2 2 {1, 2}
3 1 -2 {1}
4 0 -1 {}
5 1 3 {3}
6 2 4 {3, 4}
7 3 5 {3, 4, 5}
8 2 -4 {3, 5}
9 1 -3 {5}
10 2 6 {5, 6}
11 3 7 {5, 6, 7}
12 4 8 {5, 6, 7, 8}
13 3 -8 {5, 6, 7}
14 2 -7 {5, 6}
15 1 -6 {5}
16 0 -5 {}
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 04 2025
STATUS
approved