Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A066817
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A066817 Conjectured values of first prime in the sequence of "reincarnations" f(m),f(f(m)),.... of m under f(m) = decimal encoding of the prime factorization of m (A067599), where m = n-th composite number, if this prime exists; = 0 otherwise. +0
2
0, 2131, 23, 3224591, 0, 0, 0, 0, 0, 0, 2251, 0, 0, 0, 3224591, 314313643123658229739531, 0, 0, 46747167851021731, 3224591, 3141114911731, 5171, 0, 21191, 3311531, 2351, 0, 22111, 3251, 32831437931, 0, 0, 0 (list; graph; listen)
OFFSET

2,2

COMMENT

The terms with 0 value listed above are conjectural. There are no primes < 10^30.

MATHEMATICA

(*f returns an array encoding the prime factorization of n*) f[ n_] := Module[ {a, l, i, t = {} }, a = FactorInteger[ n]; l = Length[ a]; For[ i = 1, i <= l, i++, t = Append[ t, a[ [ i]][ [ 1]]]; t = Append[ t, a[ [ i]][ [ 2]]]]; t];

(*g returns the concatenation of the elements of its input array*) g[ x_] := Module[ {r = "", m = Length[ x], l}, For[ l = 1, l <= m, l++, r = StringJoin[ r, ToString[ x[ [ l]]]]]; r]; (*h returns an array of the digits of its input int string*) h[ n_] := IntegerDigits[ ToExpression[ n]]

(*j returns the number formed from the digits in its input array*) j[ x_] := Module[ {r = 0, m = Length[ x], t = x, l}, For[ l = 1, l <= m, l++, r = 10*r + t[ [ 1]]; t = Rest[ t]]; r]; (*k composes the previous functions*) k[ n_] := j[ h[ g[ f[ n]]]] s[ n_] := Module[ {a=n, r=0}, While[ !PrimeQ[ a] && a<10^30, a=k[ a]]; If[ PrimeQ[ a], r=a]; r]; Table[ s[ i], {i, 2, 50}]

CROSSREFS

Cf. A067599, A067600.

Sequence in context: A031634 A031770 A031544 this_sequence A110024 A157768 A067199

Adjacent sequences: A066814 A066815 A066816 this_sequence A066818 A066819 A066820

KEYWORD

base,nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Feb 01 2002

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 December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research