Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123627
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123627 Smallest prime q such that (q^p+1)/(q+1) is prime, where p = Prime[n]; or 0 if no such prime q exists. +0
2
0, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 19, 61, 2, 7, 839, 89, 2, 5, 409, 571, 2, 809, 227, 317, 2, 5, 79, 23, 4073, 2, 281, 89, 739, 1427, 727, 19, 19, 2, 281, 11, 2143, 2, 1013, 4259, 2, 661, 1879, 401, 5, 4099, 1579, 137, 43, 487, 307, 547, 1709, 43, 3, 463 (list; graph; listen)
OFFSET

1,2

COMMENT

a(1) = 0 because such a prime does not exist, Mod[n^2+1,n+1] = 2 for n>1. Corresponding primes (q^p+1)/(q+1), where prime q = a(n) and p = Prime[n], are listed in A123628[n] = {1,3,11,43,683,2731,43691,174763,2796203,402488219476647465854701,715827883,...}. A123628(n) = (a(n)^Prime[n] + 1) / (a(n) + 1). a(n) coincides with A103795[n] when A103795[n] is prime. a(n) = 2 for n = PrimePi[A000978[k]] = {2,3,4,5,6,7,8,9,11,14,18,22,26,31,39,43,46,65,69,126,267,380,495,762,1285,1304,1364,1479,1697,4469,8135,9193,11065,11902,12923,13103,23396,23642,31850,...}. Corresponding primes of the form (2^p + 1)/3 are the Wagstaff primes that are listed in A000979[n] = {3,11,43,683,2731,43691,174763,2796203,715827883,...}.

MATHEMATICA

a(1) = 0, for n>1 Do[p=Prime[k]; n=1; q=Prime[n]; cp=(q^p+1)/(q+1); While[ !PrimeQ[cp], n=n+1; q=Prime[n]; cp=(q^p+1)/(q+1)]; Print[q], {k, 2, 61}]

CROSSREFS

Cf. A123628, A103795, A123487, A123488, A000978, A000979.

Sequence in context: A008857 A047935 A103795 this_sequence A001991 A052298 A081412

Adjacent sequences: A123624 A123625 A123626 this_sequence A123628 A123629 A123630

KEYWORD

hard,nonn

AUTHOR

Alexander Adamchuk (alex(AT)kolmogorov.com), Oct 04 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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research