Title:Home primes (OEIS A037274)
Statement:Every integer at least two reaches a home prime.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06389 [math.NT] · NS.06389v1 for this version |
| Declaration: | OeisA37274.home_prime_conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 23db9178e53c0c689e09597cf080e90ab2bcc74f3d5dcb9ebe7891903575f1ec |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/37274.lean |
Formal statement
theorem home_prime_conjecture : ∀ n : ℕ, 2 ≤ n → ReachesPrime nShow the full Challenge.lean (90 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Home primes (OEIS A037274)
Starting from an integer $n\geq 2$, list its prime factors in nondecreasing order with
multiplicity, concatenate their decimal representations, and repeat. The home-prime conjecture
says that this process always reaches a prime.
For example,
$$25 \longmapsto 55 \longmapsto 511 \longmapsto 773.$$
*References:*
* [OEIS A037274](https://oeis.org/A037274)
* M. Herman and J. Schiffman, *Investigating home primes and their families*,
Mathematics Teacher 107 (2014), 606–614
-/
@[expose] public section
namespace OeisA37274
/-- The number of decimal digits of a natural number, counting zero as one digit. -/
def decimalDigitCount (n : ℕ) : ℕ :=
if n = 0 then 1 else (Nat.digits 10 n).length
/-- Append the decimal digits of `b` to those of `a`. -/
def decimalAppend (a b : ℕ) : ℕ :=
a * 10 ^ decimalDigitCount b + b
/-- Concatenate the prime factors of `n` in nondecreasing order, retaining multiplicity. -/
def primeFactorSplice (n : ℕ) : ℕ :=
n.primeFactorsList.foldl decimalAppend 0
/-- A starting value reaches a prime after finitely many prime-factor splicing steps. -/
def ReachesPrime (n : ℕ) : Prop :=
∃ k : ℕ, ((primeFactorSplice^[k]) n).Prime
/-- Every integer at least two reaches a home prime. -/
@[category research open, AMS 11]
theorem home_prime_conjecture : ∀ n : ℕ, 2 ≤ n → ReachesPrime n := by
sorry
/-- The first step in the trajectory from $25$ is $25\mapsto55$. -/
@[category test, AMS 11]
theorem primeFactorSplice_25 : primeFactorSplice 25 = 55 := by
norm_num [primeFactorSplice, decimalAppend, decimalDigitCount, Nat.primeFactorsList]
/-- The second step in the trajectory from $25$ is $55\mapsto511$. -/
@[category test, AMS 11]
theorem primeFactorSplice_55 : primeFactorSplice 55 = 511 := by
norm_num [primeFactorSplice, decimalAppend, decimalDigitCount, Nat.primeFactorsList]
/-- The third step in the trajectory from $25$ is $511\mapsto773$. -/
@[category test, AMS 11]
theorem primeFactorSplice_511 : primeFactorSplice 511 = 773 := by
norm_num [primeFactorSplice, decimalAppend, decimalDigitCount, Nat.primeFactorsList]
/-- A prime is a fixed point of prime-factor splicing. -/
@[category test, AMS 11]
theorem primeFactorSplice_prime {p : ℕ} (hp : p.Prime) : primeFactorSplice p = p := by
simp [primeFactorSplice, Nat.primeFactorsList_prime hp, decimalAppend]
/-- The trajectory from $25$ reaches the prime $773$ after three steps. -/
@[category test, AMS 11]
theorem reachesPrime_25 : ReachesPrime 25 := by
refine ⟨3, ?_⟩
norm_num [Function.iterate_succ_apply, primeFactorSplice, decimalAppend, decimalDigitCount,
Nat.primeFactorsList]
end OeisA37274
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA37274.home_prime_conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_home_prime_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-37274 nosorry submit oeis-37274 nosorry/oeis-37274/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.