Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A152832
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A152832 a(0)=-2; a(n)=n-a(n-1). +0
12
-2, 3, -1, 4, 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11, 7, 12, 8, 13, 9, 14, 10, 15, 11, 16, 12, 17, 13, 18, 14, 19, 15, 20, 16, 21, 17, 22, 18, 23, 19, 24, 20, 25, 21, 26, 22, 27, 23, 28, 24, 29, 25, 30, 26, 31, 27, 32, 28, 33, 29, 34, 30, 35, 31, 36, 32, 37, 33, 38, 34, 39, 35 (list; graph; listen)
OFFSET

0,1

FORMULA

a(n)= (n+1)/2-(9*(-1)^n+1)/4. G.f.: -(2*x-1)*(x-2)/((1+x)*(x-1)^2). a(n)=a(n-1)+a(n-2)-a(n-3). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 03 2009, Aug 14 2009]

MATHEMATICA

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

CROSSREFS

Cf. A084964

Sequence in context: A122078 A126736 A127412 this_sequence A039661 A081877 A049076

Adjacent sequences: A152829 A152830 A152831 this_sequence A152833 A152834 A152835

KEYWORD

sign

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 14 2008

EXTENSIONS

Definition corrected by N. J. A. Sloane (njas(AT)research.att.com), Jan 11 2009

Formula adapted to offset by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 14 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research