Searching for Patterns among Squares Modulo p
Roger Bilisoly

TL;DR
This paper explores the apparent randomness and underlying structure of quadratic residues modulo a prime, revealing a classical number theory result through statistical analysis.
Contribution
It demonstrates that the distribution of Legendre symbols follows a predictable pattern, connecting number theory with statistical testing in a novel way.
Findings
The sequence of Legendre symbols has exactly (p-1)/2 runs.
The number of quadratic residues among 1 to p-1 is (p-1)/2.
A classical theorem by Aladov is proved using statistical methods.
Abstract
Although squaring integers is deterministic, squares modulo a prime, , appear to be random. First, because they are all generated by the multiplicative linear congruential equation, , where and is any primitive root of , a pseudorandom number heuristic suggests that they are, in fact, unpredictable. Moreover, one type of cryptography makes use of discrete algorithms, which depends on the difficulty of solving for given and . This suggests that the squares, which are exactly the even powers of , are hard to identify. On the other hand, the Legendre symbol, , which equals if a is a square modulo and otherwise, has proven patterns. For example, holds true, and this shows that squares modulo have some structure. This paper considers the randomness of the following sequence:…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsChaos-based Image/Signal Encryption · Algorithms and Data Compression · Cellular Automata and Applications
