TOPICS
Search

Climb to a Prime


The climb to a prime problem asks whether a particular iteration based on prime factorization always reaches a prime number (Sloane 2017). For a positive integer n>=2, write

 n=p_1^(e_1)p_2^(e_2)...p_r^(e_r),

where p_1<p_2<...<p_r are prime numbers and the exponents e_i are positive integers. Define f(n) by writing each p_i followed by e_i, in that order, in base 10 and concatenating the resulting digits, omitting every exponent equal to 1. Set f(1)=1. For n=1, 2, ..., the values of f(n) are 1, 2, 3, 22, 5, 23, 7, 23, 32, 25, ... (OEIS A080670).

Starting from n, repeatedly apply f. If this reaches 1 or a prime number, record that value, and otherwise record -1. For n=1, 2, ..., these values begin 1, 2, 3, 211, 5, 23, 7, 23, ... (OEIS A195264).

The universal prime-reaching claim is false. The composite number

 N=13532385396179=13·53^2·3853·96179

is a fixed point of f (Sloane 2017). Each of 13, 53, 3853, and 96179 is prime, and concatenation of 13, 53, 2, 3853, and 96179 gives N again. Hence f(N)=N, and induction gives f^k(N)=N for every integer k>=0. This starting value therefore never reaches a prime number.

This iteration differs from the home prime process, which concatenates repeated prime factors instead of appending exponents. For example, f(8)=23, whereas the home prime process starts with 8->222.


See also

Concatenation, Home Prime, Iteration, Prime Factorization

Explore with Wolfram|Alpha

References

Numberphile. Featuring T. Padilla. "13532385396179." Jun. 8, 2017. https://www.youtube.com/watch?v=3IMAUm2WY70.Sloane, N. J. A. "Confessions of a Sequence Addict." Slides of an invited talk at AofA 2017, Princeton, 2017. https://neilsloane.com/doc/AofA2017.pdf.Sloane, N. J. A. Sequences A080670 and A195264 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Climb to a Prime." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ClimbtoaPrime.html

Subject classifications