Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A085063
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A085063 a(n) is the minimal number k such that n+k and n*k+1 are primes. +0
7
1, 1, 2, 1, 2, 1, 4, 5, 2, 1, 2, 1, 4, 3, 2, 1, 6, 1, 10, 3, 2, 1, 6, 13, 4, 3, 4, 1, 2, 1, 10, 11, 10, 3, 2, 1, 4, 5, 2, 1, 2, 1, 4, 9, 14, 1, 6, 5, 4, 3, 2, 1, 14, 5, 6, 5, 4, 1, 12, 1, 6, 5, 10, 3, 2, 1, 4, 15, 2, 1, 8, 1, 6, 27, 8, 3, 6, 1, 4, 3, 2, 1, 6, 5, 12, 11, 20, 1, 12, 7, 6, 5, 4, 3, 2, 1, 4, 5 (list; graph; listen)
OFFSET

1,3

COMMENT

If n+1 is prime then a(n)=1; if n+1 is not prime then a(n)=A120223(n).

EXAMPLE

a(3)=2 because 3+2=5 and 3*2+1=7 are prime;

a(8)=5 because 8+5=13 and 8*5+1=41 are prime,

MATHEMATICA

Reap[Do[Do[If[PrimeQ[{n+x, n*x+1}]=={True, True}, Sow[x]; Break[]], {x, 1, 100}], {n, 120}]][[2, 1]]

CROSSREFS

Cf. A092945, A120223, A120224, A120225.

Sequence in context: A079499 A166235 A143591 this_sequence A058511 A131044 A106380

Adjacent sequences: A085060 A085061 A085062 this_sequence A085064 A085065 A085066

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jun 28 2003

EXTENSIONS

Corrected and extended by Zak Seidov (zakseidov(AT)yahoo.com), Jun 10 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 November 25 08:46 EST 2009. Contains 167481 sequences.


AT&T Labs Research