Problem
Let be the sum of the three largest proper divisors of (proper means ). We are given an infinite sequence of positive integers such that each has at least three proper divisors, and Determine all possible values of .
Answer (classification)
Write for the exponent of a prime in .
All and only the following work:
is divisible by but not by , is odd, and
Equivalently, can be written as for some integers with
Step 1: in any infinite valid sequence, every term is divisible by
Let be any term of the sequence, and let be the three largest proper divisors of . Define Then each is a divisor of , , the are distinct, and
Lemma 1.1: if is odd and has at least three proper divisors, then
If is odd then all divisors of are odd, hence , , and So .
Moreover, if is odd then is also odd (sum of three odd divisors). Therefore, if some were odd, the sequence would remain odd and strictly decrease forever, impossible in .
Hence in any infinite valid sequence,
Lemma 1.2: if is even and and has at least three proper divisors, then
If is even then , so . If additionally , then , so and . Therefore hence .
The inequality alone does not imply that divisibility by is preserved (indeed, e.g. ). We instead use the following parity-mod- lemma.
Lemma 1.3 (key fix): if is even, , and is even, then
Assume is even and . Let be the three largest proper divisors, and define as above. Then and, since , all are invertible modulo .
Suppose for contradiction that . Reducing modulo and using gives Since , we can cancel and get But and . Also for any , we have and . So the congruence becomes The only way this can happen with (mod ) is In particular , so . But if , then is a divisor of and (because ) there is no divisor strictly between and , hence , contradiction. Therefore , so and is odd. Also are then odd, hence and are even. Thus is odd, contradicting the assumption that is even.
So if is even, necessarily .
Corollary 1.4: in any infinite valid sequence, every term is divisible by
Assume for contradiction that for some . By Lemma 1.1, every term in an infinite valid sequence is even, hence is even. Applying Lemma 1.3 to yields . Inductively, for all . But then Lemma 1.2 applies at every step , giving so the tail is a strictly decreasing infinite sequence in , impossible.
Therefore for all .
Combining with Lemma 1.1, we have established the crucial invariant:
Step 2: explicit evaluation of for
Assume , and let be the three largest proper divisors.
- Always and are proper divisors.
- Any divisor must be of the form with , hence only are possible.
- Any divisor must have , hence .
- Any divisor must have , hence .
This gives a clean case split:
Lemma 2.1 (three largest proper divisors for )
- If then the three largest proper divisors are , hence
- If but then the three largest proper divisors are , hence
- If and then the three largest proper divisors are , hence
Step 3: never appears in an infinite valid sequence
Assume for some . From Step 1, , so .
- If , then Lemma 2.1(2) gives , which is odd (since has exactly one factor ). Contradiction to Lemma 1.1.
Thus whenever we must have , and Lemma 2.1(1) yields . This map preserves the factor but decreases by each time, so after finitely many steps we reach a term still divisible by but not by , contradicting the previous paragraph.
Therefore
Step 4: reduction to a - valuation process
From Steps 1 and 3, for all we have and . Hence Lemma 2.1 reduces to:
Write and .
- If , then so the sequence is constant: .
- If , then and we must apply the map .
To keep after a step, we need and additionally , i.e. Each time we apply , Thus, the number of such steps before reaches equals This forces to be odd. After these steps, becomes , and we still need in order to remain divisible by . Therefore
This proves the necessary condition:
Step 5: sufficiency
Assume satisfies the condition. Let , , and .
- For the first steps, we have and , so we may apply , and each term stays divisible by .
- After steps we reach with and , and still .
- Therefore and , so Lemma 2.1(3) gives and the sequence is constant from then on.
Finally, every term is divisible by , hence has at least the three proper divisors . So the sequence is valid for all .
This proves the condition is also sufficient.
Lean4 / mathlib formalization (partial)
Same Lean attachment as in the previous version: it defines next as the sum of the three maxima of Nat.properDivisors, defines the simplified transition g, and sets up the two hard lemmas as sorrys.
import Mathlib.NumberTheory.Divisors
import Mathlib.Data.Finset.Max
import Mathlib.Logic.Function.Iterate
open Finset
namespace DivisorSequence
noncomputable def next (n : ℕ) : ℕ := by
classical
let s : Finset ℕ := Nat.properDivisors n
by_cases h3 : s.card ≥ 3
·
let m1 : ℕ := s.max' (by
have : 0 < s.card := lt_of_lt_of_le (by decide : (0:ℕ) < 3) h3
simpa [Finset.card_pos] using this)
let s1 : Finset ℕ := s.erase m1
have hs1 : s1.card ≥ 2 := by
have hm1 : m1 ∈ s := by
simpa [m1] using s.max'_mem (by
have : 0 < s.card := lt_of_lt_of_le (by decide : (0:ℕ) < 3) h3
simpa [Finset.card_pos] using this)
simpa [s1, Finset.card_erase_of_mem hm1] using (Nat.sub_le_sub_right h3 1)
let m2 : ℕ := s1.max' (by
have : 0 < s1.card := lt_of_lt_of_le (by decide : (0:ℕ) < 2) hs1
simpa [Finset.card_pos] using this)
let s2 : Finset ℕ := s1.erase m2
have hs2 : s2.Nonempty := by
have hm2 : m2 ∈ s1 := by
simpa [m2] using s1.max'_mem (by
have : 0 < s1.card := lt_of_lt_of_le (by decide : (0:ℕ) < 2) hs1
simpa [Finset.card_pos] using this)
have : s2.card ≥ 1 := by
simpa [s2, Finset.card_erase_of_mem hm2] using (Nat.sub_le_sub_right hs1 1)
have : 0 < s2.card := Nat.pos_of_ne_zero (by
intro h
have := this
simp [h] at this)
simpa [Finset.card_pos] using this
let m3 : ℕ := s2.max' hs2
exact m1 + m2 + m3
·
exact 0
noncomputable def g (n : ℕ) : ℕ :=
if 4 ∣ n then 13 * (n / 12) else n
def Good (n : ℕ) : Prop :=
∃ k ℓ m : ℕ, k + 1 ≤ ℓ ∧ Nat.Coprime m 30 ∧ n = 2^(2*k+1) * 3^ℓ * m
theorem g_iterate_on_good {n : ℕ} (hn : Good n) :
∃ k ℓ m : ℕ, k + 1 ≤ ℓ ∧ Nat.Coprime m 30 ∧
((g^[k]) n = 13^k * 2 * 3^(ℓ-k) * m) ∧
((g^[k+1]) n = (g^[k]) n) := by
classical
rcases hn with ⟨k, ℓ, m, hkl, hcop, rfl⟩
refine ⟨k, ℓ, m, hkl, hcop, ?_, ?_⟩
·
induction k with
| zero =>
simp [Nat.iterate, g]
| succ k ih =>
sorry
·
sorry
theorem next_eq_g_of_mul6 {n : ℕ} (h6 : 6 ∣ n) (h5 : ¬ 5 ∣ n) : next n = g n := by
sorry
end DivisorSequence
Compilation output
$ cd /opt/lean/Math
$ lake env lean DivisorSequence.lean
DivisorSequence.lean:70:8: warning: declaration uses 'sorry'
DivisorSequence.lean:90:8: warning: declaration uses 'sorry'
Summary
The corrected Step 1 shows that in an infinite valid sequence all terms must be divisible by , using a parity-mod- argument (Lemma 1.3) rather than the incorrect implication “ forces ”. After that, the dynamics reduces to the / identity map on , , and tracking gives the stated complete classification.