login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119558 a(1)=0,a(2)=0,a(3)=1 then a(n)=abs(a(n-1)-a(n-2))+(-1)^n*a(n-3). 1
0, 0, 1, 1, 0, 2, 1, 1, -2, 4, 5, -1, 2, 8, 7, 3, -4, 14, 15, -3, 4, 22, 21, 5, -6, 32, 33, -5, 6, 44, 43, 7, -8, 58, 59, -7, 8, 74, 73, 9, -10, 92, 93, -9, 10, 112, 111, 11, -12, 134, 135, -11, 12, 158, 157, 13, -14, 184, 185, -13, 14, 212, 211, 15, -16, 242, 243, -15, 16, 274, 273, 17, -18, 308, 309, -17, 18, 344 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
See A104156 for an order 2 example.
REFERENCES
B. Cloitre, On strange predictible recursions, preprint 2006
LINKS
FORMULA
for n>=1 a(4n)=(-1)^n*(2*floor(n/2)-1), a(4*n+1)=(-1)^(n+1)*2*floor(n/2), a(4*n+2)=n^2-n+2, a(4*n+3)=n^2-n+2+(-1)^n
CROSSREFS
Sequence in context: A333270 A333272 A352501 * A333450 A210112 A024735
KEYWORD
sign
AUTHOR
Benoit Cloitre, May 30 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)