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: if the process is infinite, every term is divisible by
Let be any term of the sequence. Let be the three largest proper divisors of , and define Then are divisors of , , and they are distinct; moreover and
Lemma 1.1: if is odd and has at least three proper divisors, then
Because is odd, each is odd, hence , , . Therefore so .
Thus if some were odd, the sequence would become strictly decreasing forever (since oddness is preserved: sum of three odd divisors is odd), impossible for a sequence of positive integers with each term . Hence every is even.
Lemma 1.2: if is not divisible by and has at least three proper divisors, then
Since , none of the equals . Because is even (by Lemma 1.1 applied to the sequence), we have . Also (if ) and in any case if . Finally . In all cases we obtain the uniform bound so again .
Therefore no term of an infinite valid sequence can be , hence every is divisible by .
Combining, in any infinite valid sequence,
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
So once holds, the dynamics depends only on divisibility by and .
Step 3: never appears in an infinite valid sequence
Assume for contradiction that for some . We already know , so .
- If , then by Lemma 2.1(2) we get But has exactly one factor (since ), so dividing by removes that factor, and multiplying by does not restore it. Hence , contradicting Step 1 (all terms are even).
Thus, whenever , we must have , and Lemma 2.1(1) yields This operation does not remove the factor , but it decreases by each time. After finitely many iterations, drops below so while still , 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 .
But 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 already 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 are allowed to apply , and each term stays divisible by .
- After steps we reach a number with and , and still .
- Therefore and , so by Lemma 2.1(3) we get 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)
The Lean file below defines next (sum of the three largest proper divisors) using Nat.properDivisors and successive maxima, and introduces the simplified function g capturing the closed-form update for numbers divisible by and not by .
The two remaining sorrys correspond exactly to:
- proving the explicit iterate formula for
gon the normal form ; - proving the key arithmetic lemma
next_eq_g_of_mul6(the divisor-ordering step of Lemma 2.1).
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
-- hard divisor-ordering lemma
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 process is forced into multiples of and can never contain a factor . On this restricted set, the map is either the identity (when ) or multiplication by (when ). Tracking yields the exact necessary-and-sufficient condition stated at the beginning.