Challenges
Quadratic residues
Cryptography
Medium
Quadratic residues
Solves: 6
Quadratic residues
Author: CyberSamSU
Points
35
The number a is called a quadratic residue modulo mod p if such x can be found that x² ≡ a (mod p). In simple terms: a has a modular square root.
For an odd prime p, exactly half of the numbers from 1 to p-1 are quadratic residues. And each residue has exactly two roots: if x is a root, p - x is also a root (because (p-x)² = p² - 2px + x² ≡ x²).
Only one of the following four numbers is a quadratic residue modulo mod p:
p = 6553
nomzodlar = 1948, 5699, 1687, 1093
Find that number, determine the smaller of its two roots, and assemble the flag in the following format: BAYROQ{M4TH_kvadratik_qoldiq_<qoldiq>_<kichik ildiz>}
To submit a flag, log in.