Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079054
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079054 a(n) = -1 if the closest prime to prime(n) is prime(n-1); = 1 if the closest prime to prime(n) is prime(n+1); = 0 if prime(n-1) and prime(n+1) are equally close to prime(n). +0
1
1, -1, 0, -1, 1, -1, 1, -1, -1, 1, -1, 1, 1, -1, -1, 0, 1, -1, 1, 1, -1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, 0, 1, -1, 0, 1, -1, 1, -1, 1, -1, 0, 1, 1, -1, -1, 1, -1, 1, 0, 0, 1, -1, 1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, 0, 1, -1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1 (list; graph; listen)
OFFSET

1,1

EXAMPLE

prime(1) = 2 is closer to prime(2) = 3 than prime(3) = 5, so a(2) = -1.

CROSSREFS

Adjacent sequences: A079051 A079052 A079053 this_sequence A079055 A079056 A079057

Sequence in context: A103583 A070178 A127254 this_sequence A130716 A014102 A014195

KEYWORD

easy,sign

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Feb 02 2003

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 October 11 09:12 EDT 2008. Contains 144832 sequences.


AT&T Labs Research