Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A087242
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A087242 Smallest prime number p such that n+p = q is also a prime, or 0 if no such prime number exists. +0
3
2, 3, 2, 3, 2, 5, 0, 3, 2, 3, 2, 5, 0, 3, 2, 3, 2, 5, 0, 3, 2, 7, 0, 5, 0, 3, 2, 3, 2, 7, 0, 5, 0, 3, 2, 5, 0, 3, 2, 3, 2, 5, 0, 3, 2, 7, 0, 5, 0, 3, 2, 7, 0, 5, 0, 3, 2, 3, 2, 7, 0, 5, 0, 3, 2, 5, 0, 3, 2, 3, 2, 7, 0, 5, 0, 3, 2, 5, 0, 3, 2, 7, 0, 5, 0, 3, 2, 13, 0, 7, 0, 5, 0, 3, 2, 5, 0, 3, 2, 3, 2, 5, 0, 3, 2 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n)=Min{x; n+x is prime}

EXAMPLE

a(n)=0, i.e. no solution exists if n is a special prime, namely n is not a lesser-twin-prime;

e.g. if n=7, then neither 7+2=9 nor 7+(oddprime) is a prime, thus no p prime exits such that 7+p was also a prime.

If n=lesser-twin-prime then a(n)=2 is a solution because n+a[n]=n+2=larger-twin-prime satisfying condition.

CROSSREFS

Cf. A087243.

Sequence in context: A165005 A167530 A029208 this_sequence A123556 A053669 A112047

Adjacent sequences: A087239 A087240 A087241 this_sequence A087243 A087244 A087245

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Sep 04 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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research