login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A030451 Once started, this mixes the natural numbers and the natural numbers shifted by 1. 5
0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 11, 10, 12, 11, 13, 12, 14, 13, 15, 14, 16, 15, 17, 16, 18, 17, 19, 18, 20, 19, 21, 20, 22, 21, 23, 22, 24, 23, 25, 24, 26, 25, 27, 26, 28, 27, 29, 28, 30, 29, 31, 30, 32, 31, 33, 32, 34, 33, 35, 34, 36, 35, 37, 36, 38, 37 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

a(n) = A110570(n,2) for n>1. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jul 28 2005

LINKS

Index entries for two-way infinite sequences

FORMULA

a(n) = 3/4 -(-1^n)*3/4 +n/2.

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

a(n)=(n+1)-a(n-1) (with a(0)=0) [From Vincenzo Librandi, Nov 18 2010]

PROG

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

CROSSREFS

Cf. A028242.

Sequence in context: A066136 A097140 A028242 * A029162 A005044 A029142

Adjacent sequences:  A030448 A030449 A030450 * A030452 A030453 A030454

KEYWORD

nonn

AUTHOR

Daniel Smith (2true(AT)gte.net)

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 07:41 EST 2012. Contains 205998 sequences.