[seqfan] Why does this sequence make a staircase pattern?
elijah.beregovsky at gmail.com
Fri Feb 14 20:56:13 CET 2020
In an earlier post (in Ali Sada's thread "Are we going to get anything
other than 2’s and 3’s from this algorithm?") I introduced a sequence.
Let f(n) be "Divide n by its largest prime factor and add the result to
n-1". Iterate this function. (Let's call the resulting sequence I(n,k),
where k is the number of an iteration).
For example, for n=12 it goes:
If n is prime, then f(n)=n, otherwise f(n)>n. Let's call "order of n" the
least k for which I(n,k) is prime. (The number of iterations before the
function starts going in cycles). The sequence of orders is what I'm
interested in. More precisely, the sequence of the numbers, for which a new
order occurs for the first time. I've made a little program in Mathematica
for generating it:
(* Check, whether it works *)
(* Now find the least number of order k for each k<62 *)
(* Plot it *)
As you can see, the graphs of the sequence for k<31 and for k<62 are very
similar: more or less constant, then a rapid increase, then again more or
less constant. For k=62 the corresponding n is more than 590000. I couldn't
compute more terms, Wolfram just stopped working and reset all the values
whenever I tried. But nonetheless, there's definitely another "cliff" at
So, could you explain, please, why could these "plateaus" and "cliffs"
Are all orders possible? (Seems, that the answer is yes. But, how to tackle
this question I don't know.)
And are there infinitely many numbers of each order? (Looks like that one
is also true. And I know for sure, that there's infinitely many numbers of
order more than 2. They (though, sadly, not nearly all of them) can be
generated as p*(p+1), for prime p. As p and p+1 don't have common factors,
the largest prime factor of p*(p+1) is p, so the second term in the
sequence is p*(p+1) - 1 + (p+1) = (p+2)*p, which is composite, therefore of
order not less than 2.)
Are there numbers of infinite order? (Unlikely, but I can't think of even
how to start disproving it.)
Which numbers can be reached at iteration k?
And a spreadsheet of I(n,k) for n<1000, just to get a feel for the sequence
(from column G on, primes are green). Feel free to alter it anyhow, I've
got a copy.
Thank you in advance!
More information about the SeqFan