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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A239908 a(n) = smallest value of k such that the concatenation 1,n,n^2,..., n^(k-1),n^k,n^(k-1),...n^2,n,1 is a prime. 1
9, 2, 1, 12, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Terms from Robert G. Wilson v.
LINKS
EXAMPLE
a(1) = 9 as 1 (19 times) = (10^19-1)/9 is the smallest prime of this form with an odd number of 1's.
a(2) = 2 as 12421 is a prime.
MATHEMATICA
Do[k = 0; While[a = Table[n^i, {i, 0, k}]; b = ToExpression[ StringJoin[ ToString /@ Join[a, Drop[ Reverse[a], 1]]]]; !PrimeQ[b], k++ ]; Print[k], {n, 1, 10} ] (* Robert G. Wilson v *)
CROSSREFS
See A069566 for another version.
Sequence in context: A197757 A293258 A010536 * A293171 A334689 A335086
KEYWORD
more,nonn,base
AUTHOR
Ray Chandler and N. J. A. Sloane, Apr 08 2014
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 April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)