/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ 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