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!)
A152833 a(0) = -3; a(n) = n-a(n-1). 7
-3, 4, -2, 5, -1, 6, 0, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 14, 8, 15, 9, 16, 10, 17, 11, 18, 12, 19, 13, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 27, 21, 28, 22, 29, 23, 30, 24, 31, 25, 32, 26, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 40, 34 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..74.

FORMULA

a(n) = (2n+1-13*(-1)^n)/4. G.f.: -(3-7x+3x^2)/((1+x)(1-x)^2). - R. J. Mathar, Jan 08 2009

MATHEMATICA

lst={}; a=3; Do[a=n-a; AppendTo[lst, a], {n, 0, 6!}]; lst

RecurrenceTable[{a[0]==-3, a[n]==n-a[n-1]}, a, {n, 80}] (* Harvey P. Dale, May 16 2016 *)

CROSSREFS

Cf. A084964, A152832.

Sequence in context: A238373 A078069 A090131 * A139525 A246832 A133570

Adjacent sequences:  A152830 A152831 A152832 * A152834 A152835 A152836

KEYWORD

sign

AUTHOR

Vladimir Joseph Stephan Orlovsky, Dec 14 2008

EXTENSIONS

Indices added to definition, offset corrected by R. J. Mathar, Jan 08 2009

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 11:17 EDT 2021. Contains 343112 sequences. (Running on oeis4.)