Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated

Basins and step counts of the totient-plus-one map

../


This folder's results that are not drawn from a cited source are Plasma AI's, credited to Plasma AI.

Target

Problem 409, status open. Put T(n)=φ(n)+1T(n)=\varphi(n)+1 and let F(n)F(n) be the number of applications of TT needed to reach a prime from nn. The problem asks how large F(n)F(n) is, whether infinitely many nn reach the same prime, and what the density of the nn reaching a fixed prime is. The basin of a prime pp is the set of nn whose orbit reaches pp. erdosproblems.com reads the first question as asking for good upper bounds on F(n)F(n); the formal-conjectures statement asks for the order of FF, for a prime with an infinite basin, and for the density of each basin.

What is established

Every orbit reaches a prime, and the basin page proves F(n)≤4(n−2)F(n)\le4(\sqrt n-\sqrt2) for n≥2n\ge2 and computes the complete basins of the primes up to 1111, all finite. These are author-recorded and elementary, and the small-basins lead records them; the square-root bound also appears on the problem's forum thread.

Banks, Ford, Luca, Pappalardi and Shparlinski, Values of the Euler Function in Various Sequences (2005), Theorem 4.1 (author manuscript, pp. 14–15, accessed 2026-10-15), prove that outside at most x/(log⁡x)2+o(1)x/(\log x)^{2+o(1)} primes p≤xp\le x the only solutions of φ(n)=p−1\varphi(n)=p-1 are pp and 2p2p. The source states the almost-all-primes consequence explicitly. Its definition and proof were read; its underlying sieve and totient-counting theorems are taken as published inputs.

L104 records the elementary basin consequence, at tier 0: 2p2p has no predecessor, so these primes have exactly the basin {p,2p}\{p,2p\}. Thus for almost every prime the infinitude question has the answer no and the density question the answer zero. This is an application of the 2005 counting theorem, not a new exceptional-prime estimate. Its proof also records a weaker-count reconstruction using the same largest-prime split.

The forum thread records further claims, listed on the problem page with their standing. One of them, by the account ankit (its claim page), treats the primes p≡3(mod4)p\equiv3\pmod4 by 22-adic valuation with only O(x)O(\sqrt x) exceptions; Plasma AI rederived it. The 2005 theorem treats all residue classes with a weaker exception count. The same comment reports exact finite basins for all primes below 3000030000 and observes that Dickson's prime kk-tuples conjecture makes FF unbounded through chains with qi+1=(3qi+1)/2q_{i+1}=(3q_i+1)/2, where T(3qi+1)=2qi+1−1=3qiT(3q_{i+1})=2q_{i+1}-1=3q_i when qi+1≠3q_{i+1}\ne3. These computations were not checked here. OEIS A229487 lists the conjectured largest element of each basin.

The structure of the inverse forest

The basins partition the positive integers. After removing the prime's fixed loop, each is a finite-branching tree under T−1T^{-1}: if T(n)=mT(n)=m, the elementary inequality φ(n)≥n/2\varphi(n)\ge\sqrt{n/2} bounds n≤2(m−1)2n\le2(m-1)^2. An even number at least 44 is never a value of TT, since φ(n)\varphi(n) is even for n≥3n\ge3, so even numbers are leaves. A basin is infinite exactly when it contains an infinite backward chain p=m0←m1←m2←⋯p=m_0\leftarrow m_1\leftarrow m_2\leftarrow\cdots with mim_i odd composite for i≥1i\ge1 and φ(mi+1)=mi−1\varphi(m_{i+1})=m_i-1. This follows from finite branching and König's lemma; the chain increases strictly.

The prime-density statement is weak in the units of the basin question. The union of all two-element basins is contained in the primes and twice the primes, and hence has natural density zero. Almost every integer terminates at one of the exceptional primes. That gives neither infinitude nor positive density for any single basin: a countable union of finite sets can have density one.

Nor does the global density of totient values determine the distribution of children of a node already reached in the inverse tree. Conditioning on a node being a totient plus one and on its earlier ancestors changes that distribution, and children share the same totient value. A model based on uniform integers at each generation has no established transfer to this conditional law. The reported numerical branching data on the forum do not repair that missing transfer. No finiteness or survival conclusion is drawn from such a model here.

Discriminating step and stop rule

The discriminating step is to test whether the finite prime-chain construction extends to one fixed terminal prime, or whether its affine structure instead forces every backward chain in a useful class to terminate. Write ai=mi/P+(mi)a_i=m_i/P^+(m_i) for the cofactor left after deleting the largest prime once. When that prime is coprime to aia_i, the exact inverse map for a fixed cofactor aa is

fa(t)=a(t+φ(a)−1)φ(a).f_a(t)=\frac{a(t+\varphi(a)-1)}{\varphi(a)}.

The one-iteration stop rule is to continue only with a lemma controlling every backward chain from an infinite explicit class of exceptional primes, or an infinite chain under a stated substantive hypothesis. A restriction on one pattern of cofactors is useful but does not by itself meet this test. Finite inverse-tree enlargement is not a substitute.

The affine obstruction and its limit

L105, an unconditional tier-0 deduction, gives a quantitative obstruction. For a block of odd cofactors a1,…,ar≥3a_1,\ldots,a_r\ge3, compose their maps to obtain F(t)=(At+B)/DF(t)=(At+B)/D with AA odd, DD even, A>DA>D, and B>0B>0. Then

J(Fk(t))=(AD)kJ(t),J(t)=(A−D)t+B>0.J(F^k(t))=\left(\frac AD\right)^kJ(t),\qquad J(t)=(A-D)t+B>0.

Integer endpoints require k v2(D)≤v2(J(t))k\,v_2(D)\le v_2(J(t)). An infinite chain therefore cannot have an eventually periodic cofactor sequence. For a=3a=3 the formula becomes f3k(t)+3=3k(t+3)/2kf_3^k(t)+3=3^k(t+3)/2^k, and an odd endpoint requires k≤v2(t+3)−1k\le v_2(t+3)-1. The fixed-root chain stops even before imposing primality. Dickson's conjecture can provide longer finite chains as the root varies; it does not interchange the quantifiers to give one prime with chains of every length.

L105 also proves that an infinite chain must have cofactor at least 1111 infinitely often. For cofactors 3,5,7,93,5,7,9, a necessary residue test permits only transitions that become constant, which the preceding bound excludes. This does not generalize by the same table: 77 and 1111 can each follow the other and themselves under the necessary test. A nonperiodic sequence may change blocks before any fixed-block bound is exhausted, and arbitrarily large cofactors are another possibility.

The test stops here. Neither an infinite chain nor a class of exceptional terminal primes for which all chains satisfy the excluded restrictions has been obtained. Thus L105 is a retained obstruction to a particular construction, not a resolution of an exceptional basin and not grounds for repeating the same test or extending a census.

Reopen this route on a bound that applies to arbitrary cofactor words from a specified infinite class of roots, or on a construction of arbitrarily deep compatible inverse chains from one fixed prime. The latter would yield an infinite chain by finite branching. A count or a prime-tuple conjecture with the root allowed to change does not supply this input. A density argument would additionally need uniform control of the integers in one fixed basin up to a height, beyond mere infinitude.

Open gaps

  • Infinite basins: the exceptional-prime theorem and L105 do not control arbitrary inverse chains from any new fixed exceptional prime.
  • Step counts: no upper bound of the form F(n)=o(n)F(n)=o(\sqrt n) is established here. A slow step requires an integer with large least prime factor; prime squares and balanced semiprimes are the limiting cases in the elementary descent estimate. Two prime-square steps are never consecutive, because q2−q+1q^2-q+1 lies strictly between (q−1)2(q-1)^2 and q2q^2 for q≥2q\ge2. This observation alone does not improve the asymptotic order. No estimate for the length of arbitrary strings of balanced-semiprime steps has been obtained.
  • Unboundedness of FF: the forum gives the conditional prime-tuple construction above; no unconditional construction is established here.

The retained deductions are author-recorded. The external source theorem has its published standing; the forum claims and computations keep their separate, unreviewed standing. No independent acceptance, infinite basin, positive-density basin, or resolution of Problem 409 is asserted.