Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A003815
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A003815 a(0) = 0, a(n) = a(n-1) XOR n. +0
4
0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 16, 1, 19, 0, 20, 1, 23, 0, 24, 1, 27, 0, 28, 1, 31, 0, 32, 1, 35, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44, 1, 47, 0, 48, 1, 51, 0, 52, 1, 55, 0, 56, 1, 59, 0, 60, 1, 63, 0, 64, 1, 67, 0 (list; graph; listen)
OFFSET

0,3

COMMENT

a(n) = ABS(A077140(n)) for n>0. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 09 2007

FORMULA

a(n) = n+(-1)^n*a(n-1). - Vladeta Jovovic (vladeta(AT)Eunet.yu), Mar 13 2003

a(0)=0, a(4n+1)=1, a(4n+2)=4n+3, a(4n+3)=0, a(4n+4)=4n+4, n>=0.

a(n) = f(n,0) with f(n,x) = if n=0 then x else if x is even then f(n-1,x+n) else f(n-1,x-n). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 09 2007

MAPLE

(1+3*x-x^2+x^3)*x/(1-x^4)/(1-x^2);

CROSSREFS

Cf. A003816.

Sequence in context: A127375 A138376 A077140 this_sequence A131486 A127445 A081170

Adjacent sequences: A003812 A003813 A003814 this_sequence A003816 A003817 A003818

KEYWORD

nonn,base

AUTHOR

Marc LeBrun (mlb(AT)well.com)

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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research