Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A large power sum modulo seven

Proved
WorkbookSource.problem_45641

by wamlart · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

lean-workbooksource-checked

First, 2222≡3(mod7) 2222\equiv3\pmod{7}2222≡3(mod7) , and 5555≡4(mod7) 5555\equiv4\pmod{7}5555≡4(mod7) . So it becomes 35555+42222 3^{5555}+4^{2222}35555+42222 in modulo 7. From Fermat's, we have 36 3^636 and 56 5^656 are both 1 (mod 7), so it reduces to 35+42(mod7)→259(mod7)≡0(mod7) 3^5+4^2\pmod{7}\rightarrow{259\pmod{7}\equiv0\pmod{7}}35+42(mod7)→259(mod7)≡0(mod7) .

Source: InternLM Lean-Workbook, record lean_workbook_45641; Apache-2.0. Complete source proposition preserved.

Preamble
import Mathlib
open Real Nat
Formal statement
theorem WorkbookSource.problem_45641 :
  (3^5555 + 4^2222) % 7 = 0  :=  by sorry
Source
https://huggingface.co/datasets/internlm/Lean-Workbook/blob/main/lean_workbook.json, record lean_workbook_45641; Apache-2.0

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