Id: formal-conjectures/OEIS__224 Url: https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/OEIS/224.lean Repo: https://github.com/google-deepmind/formal-conjectures Score: 0 Title: OEIS A224: Number of squares $\bmod n$ Domain: math.NT Source: formal-conjectures Problem: number=A224 status=open collection=oeis Reviews: 0 Subject: math.NT Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Discussed: 0 Formalized: true Page: https://delphi.science/r/formal-conjectures/OEIS__224 The number of squares modulo $n$. This is the cardinality of the set $\{k^2 \bmod n \mid k \in \{0, 1, \dots, n-1\}\}$. The number of squares modulo $n$. $n^2 \equiv 1 \pmod{a(n)(a(n)-1)}$ if and only if $n$ is an odd prime. - Thomas Ordowski, Jun 08 2017