{"id":"arxiv/2605.05200","url":"https://arxiv.org/abs/2605.05200","tags":["math.NT"],"score":0,"title":"On a polynomial involving quadratic residues modulo primes","domain":"math.NT","source":"arxiv","authors":["Zhi-Wei Sun"],"reviews":0,"subject":"math.NT","summary":"Let $p$ be an odd prime, and define $$G_p(x)=\\prod_{k=1}^{(p-1)/2}\\left(x-e^{2πi k^2/p}\\right).$$ In this paper we study values of $G_p(x)$ at roots of unity via Galois theory, and confirm some previous conjectures. For example, for any primitive tenth root $ζ$ of unity, we prove that $$G_p(ζ)=\\begin{cases}(-1)^{|\\{1\\le k\\le \\frac {p+9}{10}:\\ (\\frac kp)=-1\\}|} &\\text{if}\\ p\\equiv21\\pmod{40}, \\\\(-1)^{|\\{1\\le k\\le\\frac {p+1}{10}:\\ (\\frac kp)=-1\\}|}ζ^{2}&\\text{if}\\ p\\equiv 29\\pmod{40}, \\end{cases}$$ where $(\\frac kp)$ denotes the Legendre symbol.","category":"research","comments":0,"disputed":false,"division":"math","mentions":0,"discussed":0,"published":"2026-05-06","reactions":{}}