When do , and hold?
ProvedAlfutovaUstinov.problem_4_142elementary-number-theoryeuler-totientnumber-theory
This is Problem 4.142 of N. B. Alfutova and A. V. Ustinov, Algebra and Number Theory (MCCME, 2002), Chapter 4, §4 “Theorems of Fermat and Euler”. The problem asks for which natural numbers the following equalities are possible, where is Euler's function: (a) ; (b) ; (c) . The book's answers are: (a) for prime ; (b) for even ; (c) for every .
Theorem. For natural numbers and :
- if and only if is prime;
- if and only if is even;
These are standard characterizations and identities for Euler's function, following from its multiplicativity and the product formula.
Formalization Note Euler's function is Nat.totient. The natural numbers (and the exponents in part 3) are assumed positive, matching the book's setting; and are natural-number subtractions, which are exact under these assumptions.
Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov
theorem problem_4_142 :
(∀ n : ℕ, 0 < n → (Nat.totient n = n - 1 ↔ n.Prime)) ∧
(∀ n : ℕ, 0 < n → (Nat.totient (2 * n) = 2 * Nat.totient n ↔ Even n)) ∧
(∀ n k : ℕ, 0 < n → 0 < k → Nat.totient (n ^ k) = n ^ (k - 1) * Nat.totient n) := by sorry
end AlfutovaUstinovSource
N. B. Alfutova, A. V. Ustinov, «Алгебра и теория чисел. Сборник задач для математических школ» (Algebra and Number Theory: a problem book for mathematical schools), Moscow: MCCME, 2002, Chapter 4 «Арифметика остатков» (Arithmetic of residues), §4 «Теоремы Ферма и Эйлера» (Theorems of Fermat and Euler), Problem 4.142. Problem text and answer as catalogued on problems.ru, problem 60768: https://problems.ru/view_problem_details_new.php?id=60768