Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A088621
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A088621 a(n) = smallest prime which is a concatenation of 1, n, n^2, n^3, ... n^k for some k, or 0 if no such prime exists. +0
1
11, 0, 13, 0, 0, 0, 17, 0, 19, 0, 111121, 0, 113, 0, 0, 0 (list; graph; listen)
OFFSET

1,1

COMMENT

a(2n)=a(5n)=0. Next term a(17) has 176 digits (k=16) and is too large to include in sequence. a(19), if it exists, has k>100. - Ray Chandler (rayjchandler(AT)sbcglobal.net), Oct 18 2003

EXAMPLE

a(11) = 111121 which is a concatenation of 1, 11 and 121. value of k = 2.

MATHEMATICA

f[n_] := Block[{k = FromDigits[Join[{1}, IntegerDigits[n]]], e = 1}, While[ !PrimeQ[k], e++; k = FromDigits[Join[IntegerDigits[k], IntegerDigits[n^e]]]]; k]; g[n_] := If[ Mod[n, 10] == 1 || Mod[n, 10] == 3 || Mod[n, 10] == 7 || Mod[n, 10] == 9, f[n], 0]; Table[ g[n], {n, 1, 17}] (from Robert G. Wilson v)

CROSSREFS

Cf. A088619, A068702.

Sequence in context: A003621 A055963 A127805 this_sequence A088623 A167166 A147765

Adjacent sequences: A088618 A088619 A088620 this_sequence A088622 A088623 A088624

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Oct 17 2003

EXTENSIONS

The next term is too large to include. - Robert G. Wilson v, Oct 19 2003

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 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research