login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A084738 Smallest prime of the form (n^k-1)/(n-1), or 0 if no such prime exists. 8
3, 13, 5, 31, 7, 2801, 73, 0, 11, 50544702849929377, 13, 30941, 211, 241, 17, 307, 19, 109912203092239643840221, 421, 463, 23, 292561, 601, 0, 321272407, 757, 29, 732541, 31, 917087137, 0, 1123, 2458736461986831391 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,1

COMMENTS

As mentioned by Dubner, when n is a power (greater than 1) of a prime, then (n^k-1)/(n-1) will usually be composite for all k, which is the case for n = 9, 25, 32 and 49. - T. D. Noe, Jan 23 2004

LINKS

Table of n, a(n) for n=2..34.

H. Dubner, Generalized repunit primes, Math. Comp., 61 (1993), 927-930.

EXAMPLE

a(8) = 73 = (8^3-1)/(8-1).

MATHEMATICA

Table[SelectFirst[(n^# - 1)/(n - 1) & /@ Range[10^3], PrimeQ] /. k_ /; MissingQ@ k -> 0, {n, 2, 34}] (* Michael De Vlieger, Apr 24 2017, Version 10.2 *)

CROSSREFS

Cf. A076481.

Cf. A084740 (least k such that (n^k-1)/(n-1) is prime).

Sequence in context: A187023 A331806 A331807 * A352256 A073580 A340349

Adjacent sequences: A084735 A084736 A084737 * A084739 A084740 A084741

KEYWORD

nonn

AUTHOR

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 15 2003

EXTENSIONS

More terms from T. D. Noe, Jan 23 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 28 19:31 EST 2022. Contains 359109 sequences. (Running on oeis4.)