If , infinitely many primes satisfy
An arithmetic function is multiplicative when whenever and are coprime.
The divisor sum of an arithmetic function isIf is multiplicative, then is multiplicative as well.
Repeated squaring computes using multiplications by reading the binary expansion of . Performing every multiplication modulo computes with the same number of modular multiplications.
An integer is a whole number, positive, negative, or zero.
A positive integer is an integer greater than zero.
An odd integer is not divisible by two; equivalently, it has the form .
An integer is even when it is divisible by two.
An integer is odd when it is not divisible by two.
A square-free integer is divisible by no square greater than one.
An integer divisor of is an integer that divides .
The greatest common divisor of integers and is the largest positive integer dividing both.
The least common multiple of positive integers is the smallest positive integer divisible by all of them.
The congruence means that divides .
A prime number is an integer whose only positive divisors are and .
For a Fermat prime , the multiplicative group modulo has order . Its primitive roots are all quadratic nonresidues; since there are also nonresidues, the two sets coincide.
Every integer greater than one is a product of prime numbers, uniquely up to reordering the factors.
A prime power is a positive integer of the form , where is a prime number and is a nonnegative integer.
A composite number is an integer greater than one that is not a prime number.
If , then . For prime , this yields Fermat's little theorem.
For fixed and suitable odd primes , the composite generalized repunitis congruent to one modulo and is a pseudoprime to base .
Write the even number as with odd. An odd composite number is a strong pseudoprime to a coprime base whenor for some .
Let for distinct odd prime numbers with . Exactly unit bases make a Fermat pseudoprime, and exactly of these make it a strong pseudoprime. The Fermat bases form under the Chinese remainder theorem for unit groups. If , then and is odd, so the th-power map sends five elements of each to and five to . The strong condition requires equal signs in both components, giving .
An odd composite number is an Euler pseudoprime to a coprime base whenwhere the right side is the Jacobi symbol.
For a prime and a nonzero integer , the -adic valuation isIt extends to nonzero rational numbers by .
If and is prime, thenIndeed, neither nor contains a factor , while contains exactly once because .
The Chebyshev theta function is the natural logarithm of the primorial:where both the sum and the product range over prime numbers.
The central binomial coefficient and Legendre formula implyfor every sufficiently large real number .
For every real ,For integer , strong induction proves this by splitting according to parity. If , every prime in divides , soIf , the valuation of a near-central binomial coefficient givesThe binomial estimates follow from the binomial theorem; in the odd case the two equal central coefficients together are at most . The result for real follows by replacing with .
A positive integer is decisive when every integer satisfying and is a prime number. There are only finitely many decisive numbers: every prime must divide a decisive , so the Chebyshev theta function gives , which eventually contradicts the linear lower bound for .
The prime-counting function is the number of primes at most .
If for every , where , thenfor . Every prime in contributes at least to the primorial, soTaking logarithms, using , and observing that for proves the claim.
A unit modulo is a primitive root when its multiplicative order is .
Let be an odd prime and let be primitive modulo . Then is primitive modulo every if and only if it is primitive modulo . In that case
An integer has a primitive root exactly whenwhere is an odd prime and . When primitive roots exist, their number is .
For an odd prime , a nonzero class is a quadratic residue when . These residues form an index-two subgroup of .
A nonzero class modulo an odd prime is a quadratic nonresidue when it is not a square.
For and the Legendre symbol , the quadratic Gauss sum isIt equals for and for with the standard choice of square root.
If and are the nonzero square and nonsquare classes modulo eleven and , thenTheir sum is , and their difference is the Quadratic Gauss sum .
For an odd prime ,
For an odd prime ,For , write using a primitive root ; then the left side is , which is one exactly when is even and is a square.
Euler's criterion at gives
For every odd prime,
If listed all primes congruent to seven modulo eight, then for the odd number is seven modulo eight. Every prime factor is one or seven modulo eight, at least one is seven, and none is among the , a contradiction.
Let count primes at most congruent to modulo eight. Bounding the prime-power divisibility ofabove and its size below gives, for all sufficiently large ,
For an integer matrix and prime , the commuting-matrix binomial theorem and divisibility of for give
For , one has when , and for every .
If , the sum of the least positive quadratic residues below isThe proof uses to compare the sum of all residues with its image under doubling.
For , the congruence has a solution exactly when its discriminant is zero or a quadratic residue modulo .
If is primitive modulo an odd prime and , then is primitive modulo every .
The MΓΆbius function is , is zero on integers divisible by a prime square, and is on products of distinct primes.
for ; its Euler product is .
For , the alternating Dirichlet seriesconverges locally uniformly and defines a holomorphic function. For ,
The identity continues the Riemann zeta function meromorphically to . Apparent singularities at nonreal zeros of are removable, as one sees by replacing with an integer for which . At , and , so has a simple pole of residue one.
For odd , . A value need not mean that is a square modulo composite .
For distinct odd primes, .
The factorizationshows that always has as a solution. For , it has two further solutions exactly when is a quadratic residue; for , all three factors coalesce at the unique root .
A composite is Carmichael when for every coprime to .
A composite integer is Carmichael exactly when it is square-free and divides for every prime dividing .
A simple continued fraction recursively expands a real number by taking integer parts and reciprocals. Its convergents are exceptionally good rational approximations.
A simple continued fraction terminates exactly when its value is rational. For a reduced rational , each reciprocal step is one step of the Euclidean algorithm and replaces the denominator by a strictly smaller nonnegative remainder.
Truncating a simple continued fraction gives a convergent; sufficiently accurate rational approximations with bounded denominator occur among these convergents.
With ,
For positive , define , , , andThenand is the corresponding finite generalized continued fraction.
When and are positive integers, adjacent convergents satisfyEven and odd convergents are monotone from opposite sides, their separation is , and . They therefore have a common limit , with
If every , then and . Binet's formulashows that the convergents tend to and gives sharp scaled errors through .
The simple continued fraction of a quadratic irrational is eventually periodic. For a nonsquare positive integer , the continued fraction of is periodic after its integer part.
Successive complete quotients repeat after two steps:
Rationalizing successive complete quotients gives
For the even convergents of ,Since the second factor has norm one, every such convergent satisfies .
If an irrational algebraic number has degree , then . Approximations of arbitrarily larger polynomial order therefore prove transcendence.
For the degree- minimal polynomial of , the nonzero integer gives . On a fixed neighbourhood of , the mean value theorem boundsOutside that neighbourhood the desired lower bound is immediate, giving after decreasing the constant.
Every convergent series of positive rational terms has a subseries whose rational partial sums satisfyChoose each new term small enough to enforce all previous tail bounds. Separation of reduced fractions first makes irrational, and the Liouville approximation theorem then rules out every finite algebraic degree.
A binary quadratic form is ; integral changes of variables organize forms into equivalence classes.
Integral forms and are properly equivalent whenfor some . Proper equivalence preserves both represented integers and orientation.
An integral binary quadratic form is primitive when . This property is invariant under proper equivalence because a unimodular change and its integral inverse express either coefficient triple as integer combinations of the other.
The discriminant of is . It is invariant under proper equivalence, and a real form with is positive definite exactly when .
A positive definite integral form is reduced when , with if or . Every proper equivalence class has a unique reduced representative under this boundary convention.
For a reduced form of negative discriminant , the inequalities imply . One can therefore enumerate all classes by checking the finite setand retaining integral with and the boundary sign convention.
For a negative discriminant or , the class number is the number of proper equivalence classes of primitive positive definite integral binary quadratic forms of discriminant . Equivalently, it is the number of reduced primitive forms of discriminant .
For an odd prime number , the primitive positive definite formshave discriminant and lie in distinct proper equivalence classes. The first represents one, whereas the second has minimum positive value two.
If is prime and , then for every prime ,for some integers exactly when and is a quadratic residue modulo .
Let be odd and have distinct prime divisors. Assigning each complete prime-power factor of to one of two factors gives ordered coprime factorizations . Interchanging and identifies pairs, and each unordered factorization gives a different reduced primitive form of discriminant . Hence
The identitycomes from an integer change-of-variable matrix of determinant . It therefore preserves the set of integers represented and reduces the form to .
If a prime divides a product of integers, it divides at least one factor.
The prime valuation v_p(n) is the exponent of p in the prime factorization of n.
Eulerβs totient function counts residue classes modulo n that are coprime to n.
If a is coprime to n, then a raised to the power phi(n) is congruent to one modulo n.
Multiplication by a unit permutes the reduced residue classes modulo . Multiplying all classes before and after this permutation and cancelling their unit product proves .
For coprime positive integers m and n, the Chinese remainder theorem gives phi(mn)=phi(m)phi(n).
For each positive integer , only finitely many satisfy . Indeed, every prime has , and the exponent of in is bounded because .
The Jordan totient function counts ordered -tuples modulo that together with have greatest common divisor one. The inclusion-exclusion principle gives
For a prime p, every integer a satisfies a^p congruent to a modulo p.
A squarefree integer is not divisible by the square of any prime.
An integer has a square factor when some prime square divides it.
The identity converts a square difference into a factorization.
Fermat factorization tests successive until , then returns .
A rational number is a quotient of two integers with nonzero denominator.
Between any two distinct real numbers lies a rational number.
A real number is rational exactly when its expansion in any integer base is eventually periodic.
A positional expansion in an integer base represents a rational number exactly when its digit sequence is eventually periodic. Long division proves the forward implication because only finitely many remainders occur; summing a periodic tail as a geometric series proves the converse.
The Carmichael function is the exponent of , equivalently the least positive such that every unit satisfies .
The multiplicative order of a unit modulo is the least positive for which .
For an -digit decimal integer , moving its leading digit to the end gives a cyclic rotation satisfyingThus, when a modulus divides , every rotation has the same divisibility by as , up to multiplication by a power of ten.
For a unit modulo , the function is periodic on the integers.
Equality holds exactly when the multiplicative order divides , so one period contains no repeated values.
To verify a candidate order , check and rule out for every prime divisor of .
The Euclidean algorithm repeatedly replaces by and terminates at .
A linear Diophantine equation in two variables has the form with integer coefficients and seeks integer solutions.
The equation has an integer solution exactly when divides . BΓ©zout's identity proves sufficiency, while every integer linear combination of is divisible by their greatest common divisor.
A positive integer is a sum of two integer squares exactly when every prime factor congruent to modulo has even exponent in its prime factorization.
Codex Wiki