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 Period of cubes mod $n$. The $n$-th term $a(n)$ is the smallest positive integer $T$ such that $\forall k \in \mathbb{N}$, $(k+T)^3 \equiv k^3 \pmod n$. The length of the minimal positive period of the sequence $k^p \pmod n$. $a_p(n) = \min \{ T \in \mathbb{N}^+ \mid \forall k \in \mathbb{N}, (k+T)^p \equiv k^p \pmod n \}$. 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.