OFFSET
1,16
COMMENTS
This sequence is a "signed" variant of A229037. Graphically, both sequences have similar ethereal features.
For any n > 0, |a(n)| <= floor( (n+1)/4 ).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..100000
Rémy Sigrist, Scatterplot of the first 1000000 terms
Rémy Sigrist, C++ program for A293862
EXAMPLE
a(1) = 0 is suitable.
a(2) = 0 is suitable.
a(3) cannot equal 0 as 2*a(3-1) - a(3-2) = 0.
a(3) = 1 is suitable.
a(4) cannot equal 2 as 2*a(4-1) - a(4-2) = 2.
a(4) = 0 is suitable.
a(5) cannot equal -1 as 2*a(5-1) - a(5-2) = -1.
a(5) cannot equal 2 as 2*a(5-2) - a(5-4) = 2.
a(5) = 0 is suitable.
a(6) cannot equal 0 as 2*a(6-1) - a(6-2) = 0.
a(6) = 1 is suitable.
a(7) cannot equal 2 as 2*a(7-1) - a(7-2) = 2.
a(7) cannot equal -1 as 2*a(7-2) - a(7-4) = -1.
a(7) cannot equal 0 as 2*a(7-3) - a(7-6) = 0.
a(7) = 1 is suitable.
a(8) cannot equal 1 as 2*a(8-1) - a(8-2) = 1.
a(8) cannot equal 2 as 2*a(8-2) - a(8-4) = 2.
a(8) cannot equal 0 as 2*a(8-3) - a(8-6) = 0.
a(8) = -1 is suitable.
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
sign
AUTHOR
Rémy Sigrist, Oct 18 2017
STATUS
approved