Distribution of squares mod p
- From: rusin@xxxxxxxxxxxxxxxxxxxxx (Dave Rusin)
- Date: 14 Mar 2006 20:13:22 GMT
I was asked the following and had no idea.
For p an odd prime, how many squares are congruent (mod p)
to a "positive" residue -- one of {1, 2, 3, ..., (p-1)/2 } ?
When p = 1 mod 4, the answer is "exactly half", since if x is
a square, so is -x .
What about when p = 3 mod 4 ? Is it true that there are more
"positive" squares than "negative" ones?
(Arguably the small positive numbers have a better "chance" to be
squares mod p because the residue itself is more likely to be square
when in the interval [0, (p-1)/2] than in the interval
[(p-1)/2 , p], but to the extent that it means anything at all,
it can't give more than an O(sqrt(p)) advantage to the smaller,
i.e. "positive", residues.)
A spot check of the literature didn't turn up anything useful, but
I'm sure I haven't got useful search terms.
I've checked several tens of thousands of small examples, and
sure enough the small squares are always more numerous than the
large ones. But famously we know that small data can be misleading
when comparing primes = 1 mod 4 and primes = 3 mod 4 ...
dave
.
- Follow-Ups:
- Re: Distribution of squares mod p
- From: Phil Carmody
- Re: Distribution of squares mod p
- From: Gerry Myerson
- Re: Distribution of squares mod p
- From: Larry Hammick
- Re: Distribution of squares mod p
- Prev by Date: Re: Logarithm of transfinite numbers
- Next by Date: Re: Logarithm of transfinite numbers
- Previous by thread: matrix calculation
- Next by thread: Re: Distribution of squares mod p
- Index(es):
Relevant Pages
|