PowGCD
Let $a, n$ be integers and $n > 0$. Prove that $n$ divides $\sum_{k=1}^{n} a^{\gcd(k, n)}$.
Replace sorry in the template below with your solution.
Mathlib version used by the checker is v4.29.0.
import Mathlib.Order.Interval.Finset.Nat
import Mathlib.Data.Fintype.BigOperators
theorem solution {a : ℤ} {n : ℕ} (hn : n > 0) :
(n : ℤ) ∣ ∑ k ∈ (Finset.Icc 1 n), a ^ (k.gcd n) := sorry
Submit Solution
Login to submit a solution.
Recent Submissions
| # | User | Time (UTC) | Status |
|---|---|---|---|
| 437 | Kitsune | 2026-04-22T13:37 | PASSED ⓘ |
| 436 | Kitsune | 2026-04-22T13:36 | Compilation error ⓘ |
| 33 | cwrv | Long time ago | PASSED ⓘ |