login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

%I

%S 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,

%T 6,44,43,7,-8,58,59,-7,8,74,73,9,-10,92,93,-9,10,112,111,11,-12,134,

%U 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

%N a(1)=0,a(2)=0,a(3)=1 then a(n)=abs(a(n-1)-a(n-2))+(-1)^n*a(n-3).

%C See A104156 for an order 2 example.

%D B. Cloitre, On strange predictible recursions, preprint 2006

%F 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

%K sign

%O 0,6

%A _Benoit Cloitre_, May 30 2006

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 4 19:54 EDT 2020. Contains 336202 sequences. (Running on oeis4.)