Prime-power fraction decomposition Created 2026-10-06 Updated 2026-10-13
For a positive integer , every rational number has a unique representation with and . With , the coefficients satisfy . Their existence and uniqueness use modular multiplicative inverses and the Chinese remainder theorem.
For odd prime to 35, proper representation by a positive definite binary quadratic form of discriminant is equivalent to being a square modulo every prime divisor of . A primitive representing vector extends to a determinant-one integer matrix, producing a form with leading coefficient and middle coefficient satisfying . Conversely this congruence constructs such a form. Its local roots lift to prime powers and combine by the Chinese remainder theorem. Every class reduces to one of and . The condition is local at each prime divisor; a product Jacobi symbol equal to one alone is insufficient.
For a Dedekind domain and a nonzero proper ideal , the quotient ring is a principal ideal ring. First, the correspondence theorem for ideals and unique factorization of ideals in a Dedekind domain show that the ideals of are exactly , . Consecutive powers are distinct by cancellation of invertible fractional ideals. Choose . There is no intermediate ideal between these consecutive powers, so . Multiplication by and substitution show inductively that for every . Taking gives a single generator modulo . Now factor into pairwise comaximal ideals . The Chinese remainder theorem writes as a finite direct product of rings of the preceding type, which is a principal ideal ring. It need not be an integral domain, as demonstrates. Applying the result to for any makes cyclic, yielding two generators for an ideal in a Dedekind domain.
Proof of Korselt criterion Created 2026-10-14 Updated 2026-10-18
For sufficiency, let be composite and squarefree, with for every prime factor . For any integer coprime to , Fermat's little theorem gives for every such . Their product is , so the Chinese remainder theorem gives the required congruence modulo .
For necessity, first rule out a repeated factor. If with and , the Chinese remainder theorem supplies and . This is coprime to . But the binomial theorem gives
contradicting the Carmichael number condition. Hence is squarefree.
Now choose a primitive root modulo a prime factor . Lift it to a unit modulo by prescribing and . The Chinese remainder theorem applies because is squarefree. The Carmichael congruence implies . Since has multiplicative order , that order divides . This proves the other condition.[ref]
Quadratic residue Created 2026-09-24 Updated 2026-10-18
For an odd prime , a nonzero congruence class is a quadratic residue when for some integer . Here "quadratic residue" excludes zero: zero is a square of a number, but is neither a quadratic residue nor a quadratic nonresidue under this convention. Some treatments include zero among quadratic residues; the distinction matters when counting them or discussing their subgroup.[ref]
Modulo seven, squaring the six nonzero congruence classes gives
Thus the set of quadratic residues is , and the quadratic nonresidues are . In particular, has exactly the two solutions : and . Modulo eleven the quadratic residues are instead . Two is therefore a quadratic residue modulo seven and a quadratic nonresidue modulo eleven: being a quadratic residue depends on the modulus.
Figure 1.
The square map modulo seven and eleven: two inputs in every nonzero square fiber
. Each pair maps to one quadratic residue. The six nonzero inputs modulo seven give three outputs; the ten modulo eleven give five. The zero fiber is the single input zero, and each quadratic nonresidue has an empty fiber. Details.
Why do the square roots come in pairs? If , the prime number divides , so it divides one factor: or . For nonzero these are distinct, because is an odd prime. Every nonempty nonzero fiber of a function of therefore contains exactly two inputs. Pairing the nonzero congruence classes gives exactly quadratic residues and quadratic nonresidues. Including zero gives different squares, with one rather than two square roots for zero.
The quadratic residues form a subgroup of the multiplicative group of a finite field , with index of a subgroup two. Indeed, one is a square, , and ; the inverses exist because the inputs are nonzero in the prime field. Equivalently, the squaring group homomorphism has kernel of a group homomorphism and image of a function . The apparent loss of a sign in squaring becomes a precise division of the nonzero arithmetic into two equal parts.
This structure turns a search for square roots into a yes-or-no test: Euler's criterion detects quadratic residues through modular exponentiation, and the Legendre symbol records the result as a sign. For a general integer modulus, the modular congruence still makes sense, but the two-root count and the prime field argument need not survive. For example, has four solutions ; the Chinese remainder theorem separates the sign choices modulo three and five.
For an integral generator of a number field, let and suppose is coprime to . Localizing at makes and the ring of integers equal, so reduction gives the displayed quotient ring. If with distinct monic irreducible polynomials, the Chinese remainder theorem gives local factors . Their residue fields have degrees and their maximal ideals have nilpotence indices of an ideal . Localizing the Dedekind domain at the corresponding prime ideals gives discrete valuation rings, where this same nilpotence index of an ideal is the ramification index of a prime ideal. Thus and each residue degree is .
For coprime moduli and , the Chinese remainder theorem recovers the integer uniquely in from the two ciphertexts. An ordinary integer square root then recovers the message. If distinct semiprime moduli share a factor, their greatest common divisor instead reveals factors of both moduli. Learning one message in the coprime case does not by itself give a general factoring algorithm or a decryption key for other ciphertexts.
The Cyclotomic character of a finite cyclotomic extension and the Chinese remainder theorem give the displayed Galois group. It has three order-two subgroups and three order-four subgroups; the latter are kernels of its three nonzero group homomorphisms to . By the Fundamental theorem of Galois theory, its proper intermediate fields strictly above are the three quadratic fields
and the three quartic fields
The first quartic has cyclic Galois group of order four and unique quadratic subfield ; the second is a biquadratic extension, so they differ. The last is real whereas the others are not, by the maximal real subfield of a cyclotomic field formula. Also generates the second quartic: if , then and .
For a finite Galois extension of number fields, choose a nonzero residue field generator at and lift it to an integral element whose residues at the other primes above are zero, using the Chinese remainder theorem. The orbit polynomial has coefficients in the base ring of integers. Modulo , its nonzero roots are precisely the orbit of under the decomposition group. Its coefficients belong to , so finite-field Frobenius automorphism permutes these roots. Consequently some decomposition-group element acts as Frobenius on the generator, and therefore on the entire residue field. Frobenius generates the finite-field Galois group, proving surjectivity.
Two generators for an ideal in a Dedekind domain Created 2026-10-05 Updated 2026-10-25
Every ideal of a Dedekind domain is generated by at most two elements. Given a nonzero ideal and any prescribed nonzero , the Chinese remainder theorem supplies with at every prime ideal dividing . The prime-ideal valuation in a Dedekind domain then gives .
Suppose a function has least period and distinct values on distinct period cosets. Two independent Fourier samples have the form with uniform . The displayed candidate is , so exact recovery occurs when no prime divisor of divides both residues. The Chinese remainder theorem gives probability , using the Euler product. Unlike a single-sample coprimality probability, this bound is uniformly greater than one half. A candidate-period test makes successful recovery heralded when such a test is available.
Wheel factorization 2026-10-20
Choose a modulus that is a product of small primes. Every prime not dividing must be coprime to , so a search can restrict candidates to the corresponding residue classes modulo . For several linear polynomials, discard each residue class in which any required value is divisible by a selected prime. The surviving residue classes can be combined using the Chinese remainder theorem.