Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A112591
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A112591 Sequence describing the exclusive OR operation on consecutive prime numbers. +0
2
1, 6, 2, 12, 6, 28, 2, 4, 10, 2, 58, 12, 2, 4, 26, 14, 6, 126, 4, 14, 6, 28, 10, 56, 4, 2, 12, 6, 28, 14, 252, 10, 2, 30, 2, 10, 62, 4, 10, 30, 6, 10, 126, 4, 2, 20, 12, 60, 6, 12, 6, 30, 10, 506, 6, 10, 2, 26, 12, 2, 62, 22, 4, 14, 4, 118, 26, 10, 6, 60, 6, 8, 26, 14, 4, 250, 8, 28, 8 (list; graph; listen)
OFFSET

1,2

COMMENT

When represented in binary, this series represents the un-common bits in two consecutive prime numbers. Sudden occurrence of a big number in this series holds special interest.

FORMULA

f[n] = p[n]^p[n + 1]; where p[n] is the n-th prime number

f[n] = p[n]^p[n + 1]; where p[n] is the n-th prime number - Christopher M. Herron (cmh285(AT)psu.edu), Apr 25 2006

EXAMPLE

f(2) = 6 ; since p[2] = 3, p[3] = 5; and 3^5 = 6

MAPLE

A112591 := proc(n) local ndual, n2dual, nxor, i ; ndual := convert(ithprime(n), base, 2) ; n2dual := convert(ithprime(n+1), base, 2) ; nxor := [] ; i := 1 ; while i <= nops(ndual) do nxor := [op(nxor), abs(op(i, ndual)-op(i, n2dual)) ] ; i := i+1 ; od ; while i <= nops(n2dual) do nxor := [op(nxor), op(i, n2dual) ] ; i := i+1 ; od ; add( op(i, nxor)*2^(i-1), i=1..nops(nxor)) ; end: for n from 1 to 80 do printf("%d, ", A112591(n)) ; od ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 07 2007

CROSSREFS

Sequence in context: A065284 A050088 A163864 this_sequence A106034 A142867 A080977

Adjacent sequences: A112588 A112589 A112590 this_sequence A112592 A112593 A112594

KEYWORD

nonn

AUTHOR

Sandeep Chellappen (sandeep.chellappen(AT)gmail.com), Dec 18 2005

EXTENSIONS

More terms from Christopher M. Herron (cmh285(AT)psu.edu), Apr 25 2006

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 5 20:25 EST 2009. Contains 170428 sequences.


AT&T Labs Research