Using the assumed square-free polynomial property, factor
into distinct monic polynomials that are irreducible polynomials, with . Part (b)(iii) identifies with , where .
By the first isomorphism theorem for rings, the image from part (c)(i) is , where is the kernel of a ring homomorphism. By part (a)(ii), for ideals . A field has only the zero ideal and the whole field as ideals, so each is either or the zero ring. Consequently, for a subset ,
This is the quotient of a finite product of fields principle. The subset is nonempty because , whereas the zero ring has only one unit. By part (a)(i),
Each factor is a positive integer. Since is a prime number, exactly one factor is and all remaining factors are one. Thus
so is a Mersenne prime. If with , then would be a proper divisor of ; thus is itself a prime number, although only the displayed form is needed.
The assumed square-free polynomial property can also be checked directly: in characteristic of a ring two, the formal derivative of is because is odd. These two polynomials have greatest common divisor one, since does not divide , so no repeated irreducible polynomial factor occurs.
For distinct odd prime numbers , the law of quadratic reciprocity is
Thus the two Legendre symbols agree unless both prime numbers are congruent to modulo , in which case they have opposite signs.
For an odd prime number , Euler's criterion states that
where the Legendre symbol is zero if , one if is a nonzero quadratic residue, and minus one otherwise. Including the zero case makes this formulation valid for every integer .
Apply Euler's criterion to , , and . Multiplication in modular arithmetic gives
If divides either factor, both sides are zero. Otherwise both sides belong to ; these two values are distinct modulo the odd prime number . The congruence is therefore an equality of integers, proving multiplicativity of the Legendre symbol:
The binomial theorem isolates the only terms that can survive reduction modulo the prime number :
For , neither nor is divisible by , whereas is. Consequently , and every intermediate term vanishes in modular arithmetic. Thus
This works for arbitrary integers , including those divisible by . It is the additive identity behind the Frobenius endomorphism in characteristic .
First simplify the specified residue by modular exponentiation. Modulo the prime number ,
Therefore , so the required equation becomes . Its right side is nonzero, so any solution is a unit modulo .
By Fermat's little theorem, exponents of such units can be reduced modulo . Since
raising to the th power is the inverse of raising to the th power. There is therefore exactly one residue class of solutions:
Now and . Since , we obtain
As a direct check, , , , and , whence .
Euler's totient function counts the integers in a complete complete residue system that are coprime to the modulus:
If the prime factorization is with distinct prime numbers , Euler's totient product formula is
In particular, . Adjoining the prime factor changes neither the odd factor nor its count of units, since . The product formula gives
This is a positive integer distinct from , as required.
The Chinese remainder theorem says that for pairwise coprime positive moduli and arbitrary integers , the simultaneous modular congruences
have a solution, unique modulo .
Choose distinct prime numbers . Their prime powers are pairwise coprime. Apply the Chinese remainder theorem to
For the resulting integer , each is divisible by , the required power of an integer greater than one. Adding a sufficiently large multiple of makes positive without changing any modular congruence. Thus such a positive exists, indeed infinitely many do. This is the general construction of consecutive integers divisible by prescribed prime powers.
Write the group order as , where is a prime number and . A Sylow p-subgroup is a subgroup of group order , the largest power of dividing .
The three Sylow theorems assert:
In particular, a unique Sylow p-subgroup is a normal subgroup, since all its conjugates must equal it.
For a prime number , multiplicativity of the Legendre symbol says , including the case of a zero factor. Therefore, writing with repetitions,
This product definition still agrees with the stipulated zero when the numerator and denominator are not coprime. For all three symbols are .
The supplementary law for the Legendre symbol is for odd prime numbers . For odd integers ,
and the last term is even. Induction over the prime factors of therefore gives . Consequently
For the exponent is zero.
Write , , counting repetitions. Since are coprime, every pair consists of distinct odd prime numbers. Quadratic reciprocity for the Legendre symbol gives
Multiplying over all and using multiplicativity of the Jacobi symbol yields the sign exponent
by the odd-product parity identity proved in (b)(i). Thus the Jacobi reciprocity law is
If either integer is , its factorization is empty and both sides equal .
The printed word “even” conflicts with the displayed numbers: all ten listed prime numbers are odd, and is the only even prime number. The scan confirms that wording.[ref] We first construct the detector for the explicitly listed numbers, then add as requested. The literal even-prime detector is also given below.
Let the five input bits be with value . Every listed number has . For that plane, the four-variable Karnaugh map is
The entire plane is zero. Five valid groups in the displayed Karnaugh map give the product terms
Including , their accepted numbers are respectively , , , , and . Their union is exactly the ten listed numbers. Hence an explicit Boolean circuit is: invert where needed, feed the five products into five AND gates, combine those outputs with an OR gate, and AND with . Its output is
Any gate with more than two inputs can be replaced by a tree of two-input gates. To include the exceptional prime number , detect its exact binary representation and add one OR branch:
If “even prime” is read literally instead of following the listed numbers, the complete first detector is simply
All three formulas classify all possible inputs, including and as nonprime.
For the requested Int-typed operation, remove the first element as well as its later multiples:
sieve :: [Int] -> [Int]
sieve [] = []
sieve (p:xs) = [x | x <- xs, x `rem` p /= 0]
On its intended input, p is positive, so the remainder is defined. An arbitrary list headed by zero lies outside this convention.
To enumerate literally all prime numbers, use unbounded Integer arithmetic:
primes :: [Integer]
primes = go [2..]
  where
    go :: [Integer] -> [Integer]
    go [] = []
    go (p:xs) =
      p : go [x | x <- xs, x `rem` p /= 0]
At each stage, the smallest remaining number has no smaller prime divisor and is therefore prime. Removing its larger multiples preserves every later prime and removes any composite number once its least prime divisor is processed. Lazy evaluation makes each requested finite prefix available. This implements the given repeated-filtering form of the sieve of Eratosthenes. A bounded Int stream can only cover representable values; Integer supplies the all-primes interpretation.
Write for the prime numbers in and for its nonprime elements. Since , both antichains have at least two elements: and . Every element of is below every element of . We can classify a subset by its intersection with these two levels of the two-level partial order.
Consequently an upper bound exists exactly when ; a maximum or least upper bound exists exactly when or is a singleton subset of . The exhaustive cases also justify why the last two existence criteria coincide here.
The prime numbers form the lower antichain; the nonprime elements form the upper antichain. In particular, is not a prime number. Each lower element is below each upper element, and no third element can lie strictly between them. Therefore the six cover relations are , represented by the following Hasse diagram. Upward movement represents increasing order; crossing lines do not add elements.
Figure 1.
The six cover relations for the five-element partial order
. Details.
p-deficiency Created 2026-10-06 Updated 2026-10-14
For a group presentation with finitely many generators and a prime number , define
This uses the unshifted convention. Identity relators have zero weight, and a divergent sum gives value . Some literature subtracts one instead; inequalities must be shifted accordingly. Taking roots in the free group matters: roots appearing only after passing to the quotient do not change the relator weight. The p-rank of a group bounds this quantity above, and the index-p rewriting bound for p-deficiency gives the infinitude criterion p-deficiency at least one implies infinitude.
Pépin's test 2026-10-14
For , Pépin's test says that the Fermat number is a prime number exactly when the displayed modular congruence holds. Modular exponentiation evaluates it by exponentiation by squaring without constructing the enormous ordinary power. The index restriction excludes , where the base itself is divisible by the candidate.[ref]
For a proof outline of sufficiency, any prime factor of a passing candidate gives multiplicative order exactly , a power of two: its half-power is , rather than . Fermat's little theorem forces , so , and hence . Conversely, for a prime candidate, ; quadratic reciprocity and Euler's criterion give the required half-power. At , the check is .
For a prime number , integer , and , taking the -core of a partition preserves the entries of the core tower of a partition at levels and makes every level at least empty. Also the weight of a partition equals the total size at level of the quotient tower of a partition.
For the first claim, a removable rim hook of length is a bead move by on the abacus of a partition. It preserves the numbers of beads on the runners and hence the -core. Under the abacus divisible-hook correspondence, it becomes removal of a -hook in one quotient component; iteration preserves the cores at the next levels. After all -hooks are removed, every component at quotient level is empty, so every higher core level is empty as well. The weight assertion follows from iterated quotient equals a power quotient up to permutation and the size formula for the quotient of a partition.
Let with primes and . quadratic reciprocity makes three a square modulo ; choose and impose , by the Chinese remainder theorem. The curve has good reduction at both primes. Indeed its discriminant is ; the first condition could make a factor vanish only at or 11, while the second gives and the given residue class excludes .
Doubling gives . This vanishes modulo and equals one modulo . Modulo one also has , so and is the identity. Modulo the addition is finite. Thus computing modulo encounters a denominator whose greatest common divisor with is exactly , revealing the factor. The numerator difference is minus two modulo , so the failed inverse cannot be cancelled. This is a construction of successful elliptic curve method data from prescribed local group behavior.
Primality Created 2026-10-14 Updated 2026-10-20
Primality is the property of a positive integer being a prime number. Primality testing determines this property; integer factorization asks for factors and is a different computational task.