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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126084 a(n) = result of bitwise XOR operation applied to the prime numbers from 2 to prime(n+1). 0
1, 4, 3, 8, 5, 20, 7, 16, 13, 18, 55, 30, 53, 26, 47, 20, 41, 106, 45, 100, 43, 120, 33, 64, 37, 66, 41, 68, 53, 74, 201, 64, 203, 94, 201, 84, 247, 80, 253, 78, 251, 68, 133, 64, 135, 84, 139, 104, 141, 100, 139, 122, 129, 384, 135, 394, 133, 400, 137, 402, 183, 388, 179 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

The values at odd indices are odd and the values at even indices are even.

LINKS

Table of n, a(n) for n=1..63.

FORMULA

a(1) = 2 XOR 3 = 1; a(n) = a(n-1) XOR prime(n+1).

EXAMPLE

a(3) = 3 because ((2 XOR 3) XOR 5) XOR 7 = (1 XOR 5) XOR 7 = 4 XOR 7 = 3

[Or, in base 2]

((10 XOR 11) XOR 101) XOR 111 = (1 XOR 101) XOR 111 = 100 XOR 111 = 11

PROG

(PARI) q=2; forprime(p=3, 311, q=bitxor(q, p); print1(q, ", ")) /* Klaus Brockhaus, Mar 06 2007 */

CROSSREFS

Cf. A003815, A112591.

Sequence in context: A022998 A082895 A086938 * A007015 A114562 A189042

Adjacent sequences:  A126081 A126082 A126083 * A126085 A126086 A126087

KEYWORD

nonn,base

AUTHOR

Esko Ranta, Mar 02 2007

EXTENSIONS

More terms from Klaus Brockhaus, Mar 06 2007

STATUS

approved

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 May 24 05:45 EDT 2013. Contains 225617 sequences.