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!)
A119583 a(1)=0, a(2)=0, a(3)=0, a(4)=1 then a(n)=abs(a(n-1)-2*a(n-2)+a(n-3))-a(n-4). 0
0, 0, 0, 1, 1, 1, 0, 0, 0, -1, 1, 3, 0, 6, 8, 1, 9, 9, 0, 8, 8, -1, 9, 11, 0, 14, 16, 1, 17, 17, 0, 16, 16, -1, 17, 19, 0, 22, 24, 1, 25, 25, 0, 24, 24, -1, 25, 27, 0, 30, 32, 1, 33, 33, 0, 32, 32, -1, 33, 35, 0, 38, 40, 1, 41, 41, 0, 40, 40, -1, 41, 43, 0, 46, 48, 1, 49, 49, 0, 48, 48, -1, 49, 51, 0, 54, 56, 1, 57, 57, 0, 56, 56, -1, 57, 59, 0, 62, 64 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,12
REFERENCES
B. Cloitre, On strange predictible recursions, preprint 2006
LINKS
FORMULA
for n>=1 : a(6*n)=4*n-4-(-1)^n, a(6n+1)=0, a(6*n+2)=4*n-3+(-1)^n, a(6*n+3)=4*n-2+2*(-1)^n, a(6*n+4)=(-1)^n, a(6*n+5)=4*n-1+2*(-1)^n.
Empirical g.f.: x^4*(2*x^10+5*x^8+3*x^7+x^6-2*x^5-2*x^4-2*x^3+x^2+x+1) / (x^12-2*x^9+2*x^6-2*x^3+1). - Colin Barker, Jun 28 2013
MATHEMATICA
RecurrenceTable[{a[1]==a[2]==a[3]==0, a[4]==1, a[n]==Abs[a[n-1]-2a[n-2]+ a[n-3]]- a[n-4]}, a, {n, 100}] (* Harvey P. Dale, Mar 13 2014 *)
CROSSREFS
Sequence in context: A021330 A199055 A016598 * A309604 A244009 A321482
KEYWORD
sign
AUTHOR
Benoit Cloitre, May 31 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 March 29 00:26 EDT 2024. Contains 371264 sequences. (Running on oeis4.)