Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126084
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126084 a(n) = result of bitwise XOR operation applied to the prime numbers from 2 to prime(n+1). +0
1
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; listen)
OFFSET

1,2

COMMENT

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

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

PROGRAM

(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 this_sequence A007015 A114562 A011451

Adjacent sequences: A126081 A126082 A126083 this_sequence A126085 A126086 A126087

KEYWORD

nonn,base

AUTHOR

Esko Ranta (eskous(AT)hotmail.com), Mar 02 2007

EXTENSIONS

More terms from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Mar 06 2007

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 21 10:15 EST 2009. Contains 171081 sequences.


AT&T Labs Research