Layer 3: Root Counting for Quadratic Congruences #
This file counts solutions to x² ≡ c (mod p^n) for prime powers p^n.
These are the "analytic inputs" for the ideal-counting theorems (Layer 4).
Definition #
Base case: odd prime p #
For an odd prime p, the number of solutions to x² = c in ZMod p
equals legendreSym p c + 1.