Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 828 · variants.phi_dvd_self_iff_pow2_pow3

Source:Erdős Problems · erdosproblems.com/828
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

It is an easy exercise to show that ϕ(n)∣n\phi(n) | n if and only if n=0,1n = 0, 1 or n=2a3bn = 2^a 3^b for some a>0a > 0.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.03328 [math.NT] · NS.03328v1 for this version
Declaration:Erdos828.erdos_828.variants.phi_dvd_self_iff_pow2_pow3
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3; accepted critique: up to 100
Statement hash:730bdd88064d44046dd39018a4cd97d11f55a89a2b0133e6255aae11a08b6426
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/828.lean

Formal statement

theorem erdos_828.variants.phi_dvd_self_iff_pow2_pow3 {n : ℕ} :
    φ n ∣ n ↔ n ≤ 1 ∨ ∃ᵉ (a > 0) (b), n = 2 ^ a * 3 ^ b
Show the full Challenge.lean (58 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 828

*Reference:* [erdosproblems.com/828](https://www.erdosproblems.com/828)
-/

@[expose] public section

namespace Erdos828

open scoped Nat

/--
Is it true that, for any $a \in \mathbb{Z}$, there are infinitely many $n$ such that
$$\phi(n) | n + a$$?
-/
@[category research open, question, AMS 11]
theorem erdos_828 : ∀ a : ℤ, Set.Infinite {n : ℕ | ↑(φ n) ∣ n + a} := by
  sorry

/--
When $n > 1$, Lehmer conjectured that $\phi(n) | n - 1$ if and only if $n$ is prime.
-/
@[category research open, question, AMS 11]
theorem erdos_828.variants.lehmer_conjecture : ∀ n > 1, φ n ∣ n - 1 ↔ Prime n := by
  sorry

/--
It is an easy exercise to show that $\phi(n) | n$ if and only if $n = 0, 1$ or $n = 2^a 3^b$ for
some $a > 0$.
-/
@[category textbook, AMS 11, formal_proof using formal_conjectures at
"https://github.com/XC0R/formal-conjectures/blob/d252395a9c80fc8eca30d9e5feb6e3b0bc7fc612/FormalConjectures/ErdosProblems/828.lean#L49"]
theorem erdos_828.variants.phi_dvd_self_iff_pow2_pow3 {n : ℕ} :
    φ n ∣ n ↔ n ≤ 1 ∨ ∃ᵉ (a > 0) (b), n = 2 ^ a * 3 ^ b := by
  sorry

end Erdos828

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos828.erdos_828.variants.phi_dvd_self_iff_pow2_pow3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_phi_dvd_self_iff_pow2_pow3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-828--erdos-828-variants-phi-dvd-self-iff-pow2-pow3      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-828--erdos-828-variants-phi-dvd-self-iff-pow2-pow3
nosorry submit erdos-828--erdos-828-variants-phi-dvd-self-iff-pow2-pow3 nosorry/erdos-828--erdos-828-variants-phi-dvd-self-iff-pow2-pow3/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.