The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A152835 a(0) = -22; a(n) = n-a(n-1). 7
 -22, 23, -21, 24, -20, 25, -19, 26, -18, 27, -17, 28, -16, 29, -15, 30, -14, 31, -13, 32, -12, 33, -11, 34, -10, 35, -9, 36, -8, 37, -7, 38, -6, 39, -5, 40, -4, 41, -3, 42, -2, 43, -1, 44, 0, 45, 1, 46, 2, 47, 3, 48, 4, 49, 5, 50, 6, 51, 7, 52, 8, 53, 9, 54, 10, 55, 11, 56, 12 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 LINKS Colin Barker, Table of n, a(n) for n = 0..1000 Index entries for linear recurrences with constant coefficients, signature (1,1,-1). FORMULA a(n) = (1/4)*(1-89*(-1)^n+2*n) with n>=0. - Paolo P. Lava, Dec 19 2008 a(n) = a(n-1)+a(n-2)-a(n-3). G.f.: -(22*x^2-45*x+22) / ((x-1)^2*(x+1)). - Colin Barker, Oct 28 2014 MAPLE A152835:=n->(1-89*(-1)^n+2*n)/4: seq(A152835(n), n=0..100); # Wesley Ivan Hurt, Oct 28 2014 MATHEMATICA lst={}; a=-22; Do[a=n-a; AppendTo[lst, a], {n, 0, 6!}]; lst PROG (PARI) Vec(-(22*x^2-45*x+22)/((x-1)^2*(x+1)) + O(x^100)) \\ Colin Barker, Oct 28 2014 (MAGMA) [(1-89*(-1)^n+2*n)/4 : n in [0..100]]; // Wesley Ivan Hurt, Oct 28 2014 CROSSREFS Cf. A084964, A152832, A152833. Sequence in context: A048429 A336827 A004463 * A004511 A296763 A236404 Adjacent sequences:  A152832 A152833 A152834 * A152836 A152837 A152838 KEYWORD sign,easy AUTHOR Vladimir Joseph Stephan Orlovsky, Dec 14 2008 EXTENSIONS Indices added to definition, offset corrected - R. J. Mathar, Jan 08 2009 Name and Mathematica code corrected by Colin Barker, Oct 28 2014 STATUS approved

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.

Last modified May 8 22:05 EDT 2021. Contains 343668 sequences. (Running on oeis4.)