Additive energy of the quadratic residues modulo p
A397495 · Approved June 2026
Definition
The number of ordered quadruples (a, b, c, d) of nonzero quadratic residues modulo the n-th prime p with a + b ≡ c + d (mod p).
a(n) = (p − 1)(p² − 2p + 7 + 2(−1/p))/16
where (−1/p) is the Legendre symbol.
1, 6, 15, 65, 114, 264, 369, 671, 1386, 1695
A table up to n = 10000 and a Mathematica program were added by Paolo Xausa.
In plain words
Take the squares modulo a prime. Count how often two of them add up to the same thing as two others. That count is called additive energy. It measures how much a set looks like it has structure. For the squares there is an exact formula, and it depends on whether p leaves remainder 1 or 3 when divided by 4. Getting the definition accepted took several rounds with the editors. Every word had to mean exactly one thing.