Id: formal-conjectures/OEIS__282779 Url: https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/OEIS/282779.lean Repo: https://github.com/google-deepmind/formal-conjectures Score: 0 Title: OEIS A282779: Period of $p$-th powers modulo $n$ Domain: math.NT Source: formal-conjectures Problem: number=A282779 status=solved collection=oeis Reviews: 0 Subject: math.NT Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Discussed: 0 Formalized: true Formalizations: https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/282779.wip.lean#L104 Page: https://delphi.science/r/formal-conjectures/OEIS__282779 Conjecture: let $a_p(n)$ be the length of the period of the sequence $k^p \bmod n$ where $p$ is a prime, then $a_p(n) = n/p$ if $n \equiv 0 \pmod{p^2}$, else $a_p(n) = n$. A formal proof has been found with the methods described in [arxiv/2605.22763](https://arxiv.org/abs/2605.22763).