{
  "id": "6609",
  "ident": "NS.06609",
  "slug": "oeis-51903--conjecture2",
  "title": "Maximum exponent in the prime factorization of $n$ · conjecture2",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Are there odd numbers $n$ such that $a(n) > 1$ and $n \\equiv a(n) \\pmod{\\lambda(n)}$?\n(Equivalently, odd numbers $n$ such that $a(n) > 1$ and $b^n \\equiv b^{a(n)} \\pmod n$ for all $b$.)\n- Thomas Ordowski, Dec 02 2019\n\nThe answer is no. Let $q^E \\| n$ with $E = a(n) \\ge 2$ and take $b = q + 1$: then\n$(q+1)^{n-E} \\equiv 1 \\pmod{q^E}$, so lifting the exponent gives $q^{E-1} \\mid n - E$. Since also\n$q^{E-1} \\mid n$, we get $q^{E-1} \\mid E$, which is impossible for $q \\ge 3$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA51903.conjecture2",
  "statement_lean": "theorem conjecture2 :\n    ¬ ∃ n : ℕ, Odd n ∧ 1 < a n ∧ ∀ b : ℕ, b ^ n ≡ b ^ (a n) [MOD n]",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Maximum exponent in the prime factorization of $n$\n\n*References:*\n- [A051903](https://oeis.org/A051903)-/\n\n@[expose] public section\n\nnamespace OeisA51903\n\n/-- Maximum exponent in the prime factorization of $n$. -/\ndef a (n : ℕ) : ℕ :=\n  (n.primeFactorsList.map (n.primeFactorsList.count ·)).foldr max 0\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 0 := by\n  decide +native\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 1 := by\n  decide +native\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 1 := by\n  decide +native\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 2 := by\n  decide +native\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 1 := by\n  decide +native\n\n/--\nAre there composite numbers $n > 4$ such that $n \\equiv a(n) \\pmod{\\phi(n)}$?\n- Thomas Ordowski, Dec 02 2019\n\nThis question is equivalent to Lehmer's totient problem `LehmerTotient.lehmer_totient`; a\npositive answer here falsifies the universal statement asked about in\n`Erdos828.erdos_828.variants.lehmer_conjecture`. Any composite\n$n$ with $\\phi(n) \\mid n - 1$ is squarefree, so $a(n) = 1$ and the condition here holds.\nConversely, let $n > 4$ be composite with $\\phi(n) \\mid n - a(n)$ and $e = a(n) \\ge 2$, and\npick $p$ with $p^e \\mid n$. Then $p^{e-1} \\mid \\phi(n) \\mid n - e$ and $p^{e-1} \\mid n$, so\n$p^{e-1} \\mid e$, which forces $p = 2$ and $e = 2$. Now $n = 4m$ with $m$ odd and squarefree,\nand $2\\phi(m) \\mid 4m - 2$ makes $\\phi(m)$ odd, so $m = 1$ and $n = 4$. Hence $e = 1$ and the\ncondition is $\\phi(n) \\mid n - 1$.\n-/\n@[category research open, question, AMS 11]\ntheorem conjecture1 :\n    ∃ n : ℕ, 4 < n ∧ ¬ n.Prime ∧ n.totient ∣ (n - a n) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nAre there odd numbers $n$ such that $a(n) > 1$ and $n \\equiv a(n) \\pmod{\\lambda(n)}$?\n(Equivalently, odd numbers $n$ such that $a(n) > 1$ and $b^n \\equiv b^{a(n)} \\pmod n$ for all $b$.)\n- Thomas Ordowski, Dec 02 2019\n\nThe answer is no. Let $q^E \\| n$ with $E = a(n) \\ge 2$ and take $b = q + 1$: then\n$(q+1)^{n-E} \\equiv 1 \\pmod{q^E}$, so lifting the exponent gives $q^{E-1} \\mid n - E$. Since also\n$q^{E-1} \\mid n$, we get $q^{E-1} \\mid E$, which is impossible for $q \\ge 3$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/anshM123/OEIS-A051903/blob/c0104e7a9cc2d76d86c3a277c372f91a9553a0f6/lean/DMSolutions/OEIS_A051903/Solution.lean#L21-L24\"]\ntheorem conjecture2 :\n    ¬ ∃ n : ℕ, Odd n ∧ 1 < a n ∧ ∀ b : ℕ, b ^ n ≡ b ^ (a n) [MOD n] := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nAre there odd numbers $n$ such that $a(n) > 1$ and $n \\equiv a(n) \\pmod{\\operatorname{ord}_n(2)}$?\n(Equivalently, odd numbers $n$ such that $a(n) > 1$ and $2^n \\equiv 2^{a(n)} \\pmod n$.)\n- Thomas Ordowski, Dec 02 2019\n\nThe answer is yes: $n = 7 \\cdot 631 \\cdot 881 \\cdot 3511^2 \\cdot 201961 = 9687963167864344937$ is odd,\n$a(n) = 2$ and $2^n \\equiv 2^2 \\pmod n$. A square factor $q^2 \\mid n$ forces $q$ to be a Wieferich\nprime; $3511$ works because $\\operatorname{ord}_{3511^2}(2) = 1755$ is odd and $n \\equiv 2 \\pmod{1755}$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/anshM123/OEIS-A051903/blob/c0104e7a9cc2d76d86c3a277c372f91a9553a0f6/lean/DMSolutions/OEIS_A051903/Solution.lean#L27-L30\"]\ntheorem conjecture3 :\n    ∃ n : ℕ, Odd n ∧ 1 < a n ∧ 2 ^ n ≡ 2 ^ (a n) [MOD n] := by\n  sorry\n\nend OeisA51903\n\n",
  "statement_hash": "86921c9d71aa839879375340708b6c4c2e1c38a0a2dca691246d14af9e013595",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}