Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

For which nnn is n2001−n4n^{2001}-n^{4}n2001−n4 divisible by 111111?

Proved
AlfutovaUstinov.problem_4_112

by evgeth · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

congruenceselementary-number-theoryfermat-little-theoremnumber-theory

This is Problem 4.112 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 nnn is the number n2001−n4n^{2001}-n^{4}n2001−n4 divisible by 111111? The book's answer is: exactly for n≡0n\equiv 0n≡0 and n≡1(mod11)n\equiv 1 \pmod{11}n≡1(mod11).

Theorem. For every integer nnn,

11∣n2001−n4  ⟺  n≡0(mod11)  or  n≡1(mod11).11 \mid n^{2001}-n^{4} \iff n\equiv 0 \pmod{11}\ \text{ or }\ n\equiv 1 \pmod{11}.11∣n2001−n4⟺n≡0(mod11)  or  n≡1(mod11).

This is a typical exercise on reducing a large exponent modulo a prime by means of Fermat's little theorem.

Formalization Note The variable nnn ranges over all integers Z\mathbb ZZ, and the congruences are expressed with Int.ModEq (notation n ≡ a [ZMOD 11]).

Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov

theorem problem_4_112 (n : ℤ) : 11 ∣ n ^ 2001 - n ^ 4 ↔ n ≡ 0 [ZMOD 11] ∨ n ≡ 1 [ZMOD 11] := 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.112. Problem text and answer as catalogued on problems.ru, problem 60738: https://problems.ru/view_problem_details_new.php?id=60738

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me