Remainders of and upon division by
ProvedAlfutovaUstinov.problem_4_118computationelementary-number-theoryfermat-little-theoremnumber-theory
This is Problem 4.118 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 the remainders upon division by of the numbers (a) and (b) . The book's answers are and .
Theorem.
Since is prime, the exercise illustrates Fermat's little theorem for .
Formalization Note The remainders are computed with natural-number division with remainder (%) on .
Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov theorem problem_4_118 : 5 ^ 102 % 103 = 1 ∧ 3 ^ 104 % 103 = 9 := by sorry end AlfutovaUstinov
Source
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.118. Problem text and answer as catalogued on problems.ru, problem 60744: https://problems.ru/view_problem_details_new.php?id=60744