Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

0,1

LINKS

Index entries for two-way infinite sequences

FORMULA

G.f.: (2-2x+x^2)/((1-x)(1-x^2)). a(2n+1)=n. a(2n)=n+2. a(n+2)=a(n)+1. a(n)=-a(-3-n).

a(n) = floor(n/2) + 1 + (-1)^n. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 27 2005

A112032(n)=2^a(n); A112033(n)=3*2^a(n); a(n)=A109613(n+2)-A052938(n). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 27 2005

MATHEMATICA

lst={}; a=1; Do[a=n-a; AppendTo[lst, a], {n, 0, 6!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 14 2008]

PROGRAM

(PARI) a(n)=n\2-2*(n%2)+2

(MAGMA) &cat[ [n+2, n]: n in [0..37] ]; [From Klaus Brockhaus, Nov 23 2009]

CROSSREFS

Cf. A030451.

Cf. A097065.

Cf. A152832 [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 14 2008]

KEYWORD

nonn,new

AUTHOR

Michael Somos, Jun 15 2003

EXTENSIONS

First part of definition adjusted to match offset by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Nov 23 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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research