login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A115596 The least number a(n)=k>1 such that (p+1)^k - p^k is prime, p = n-th prime. 0
2, 2, 2, 7, 2, 3, 3, 5, 2, 2, 5, 3, 2, 37, 2, 17, 3, 61, 23, 7, 2, 2, 7, 5, 7, 59, 5, 2, 59, 2, 59, 3, 47, 2, 2, 43, 2, 3, 5, 31, 19, 7, 3, 5, 2, 2, 2, 37, 13, 17, 3, 2, 3, 2, 3, 7, 5, 79, 3, 7, 3, 2, 5, 5, 7, 7, 53, 2, 67, 2, 7, 79, 2, 5, 3, 5, 29, 17, 3, 37, 2, 3, 2, 3, 43, 3, 3, 3, 13, 3, 2, 5, 3, 5 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Values k=1 is omitted as in this case p is Sophie Germain prime (2p+1 is also prime) A005384.

FORMULA

p=n-th prime, (p+1)^k - p^k is prime, k>1 is minimal.

EXAMPLE

a(1)=2 because (2+1)^2-2^2=5 is prime;

a(14)=37 because p(14)=43 and

(43+1)^37-43^37=3679488080703419029992001830200360494989758810080014618823621

is prime.

MATHEMATICA

s={}; Do[n=Prime[i]; Do[If[PrimeQ[(n+1)^k-n^k], AppendTo[s, k]; Goto[ne]], {k, 2, 100}]; Label[ne], {i, 300}]; s

CROSSREFS

Cf. A005384.

Sequence in context: A129365 A021453 A053789 * A202033 A029610 A094246

Adjacent sequences:  A115593 A115594 A115595 * A115597 A115598 A115599

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Jan 25 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 12:25 EST 2012. Contains 205786 sequences.