The perfect-number formula at five
ProvedWorkbookSource.problem_24615lean-workbooksource-checked
Calculate the perfect number generated by the Mersenne prime formula with p=5: .
Source: InternLM Lean-Workbook, record lean_workbook_24615 (Apache-2.0). The complete source proposition and its explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_24615 (p : ℕ) (hp : p = 5) : 2^(p-1) * (2^p - 1) = 496 := by sorry
Source