Fact-checked by Grok 2 weeks ago

Euler's theorem

Euler's theorem, also known as Euler's totient theorem, is a fundamental result in number theory that generalizes Fermat's Little Theorem to composite moduli. It states that if a and n are coprime positive integers with n \geq 2, then a^{\phi(n)} \equiv 1 \pmod{n}, where \phi(n) denotes Euler's totient function, which counts the positive integers up to n that are relatively prime to n}. Named after the Swiss mathematician Leonhard Euler, the theorem was first published by him in 1763 as an extension of Fermat's Little Theorem, which applies specifically when n is prime and states that a^{p-1} \equiv 1 \pmod{p} for prime p not dividing a. Euler introduced the totient function \phi(n) in this context, building on earlier work by Pierre de Fermat and Gottfried Leibniz. The theorem can be proved using the structure of the multiplicative group of integers modulo n, which has order \phi(n). The function \phi(n) is multiplicative for coprime arguments and can be computed explicitly as \phi(n) = n \prod_{p \mid n} (1 - 1/p) for the prime factorization of n. Euler's theorem plays a central role in modular arithmetic and has broad applications in modern cryptography, such as the RSA algorithm, where the totient function helps determine exponents for encryption and decryption using a modulus n = pq for distinct primes p and q. It also explains the periodicity of decimal expansions for fractions $1/b, where the period length divides \phi(b) if b is coprime to 10. Additionally, the theorem underpins more advanced results in algebraic number theory and is essential for computing large powers modulo n efficiently via exponentiation by squaring after reducing the exponent modulo \phi(n).

Introduction

Overview

Euler's theorem is a fundamental result in that pertains to . It asserts that if a and n are coprime positive integers, then a^{\phi(n)} \equiv 1 \pmod{n}, where \phi denotes , which counts the number of integers up to n that are coprime to n. This theorem serves as a generalization of , extending its principle from prime moduli to arbitrary positive integers n, and it elucidates key properties of the of integers modulo n. Euler's contributions to during the were profound, and the theorem first appeared in his 1763 paper Theoremata arithmetica nova methodo demonstrata, where he provided a proof using innovative arithmetic techniques. In contemporary applications, Euler's theorem underpins cryptographic protocols such as the algorithm, enabling efficient essential for secure communication and data protection.

Historical context

Leonhard Euler's contributions to emerged in the context of earlier work by , who stated what is now known as in a 1640 letter to Frenicle de Bessy, asserting that if p is prime and a is not divisible by p, then a^{p-1} \equiv 1 \pmod{p}, though without proof. Euler provided the first published proof of this theorem in 1736, using an elementary approach based on on a, marking a significant advancement in the 18th-century development of the field. His interest in such topics was stimulated by correspondence with , which began in 1729 and included discussions of Fermat's conjectures, fostering Euler's prolific output in arithmetic during the 1730s and 1740s. Euler's own theorem, a generalization of Fermat's result, built on these foundations by incorporating the totient function \phi(n), which counts the positive integers up to n that are coprime to n. He first described this function in his 1758 paper "Demonstration of a new method in the theory of arithmetic" (E271), though it received formal publication in 1763 in "Theoremata arithmetica nova methodo demonstrata," where he proved key properties such as multiplicativity for coprime arguments and used it to state that if a and n are coprime, then a^{\phi(n)} \equiv 1 \pmod{n}. Related ideas appeared indirectly in his 1748 work Introductio in analysin infinitorum, which advanced function theory and infinite series in ways that supported broader arithmetic investigations. By the 1760s, Euler had extended his proofs of Fermat's theorem into this more general form, solidifying its place in number theory. Euler's productivity persisted despite personal challenges; he became nearly blind in his right eye by 1738 and lost vision in his left by 1766, culminating in total blindness in 1771, yet he continued dictating mathematical work with remarkable output, producing over half his lifetime publications afterward. His ideas profoundly influenced subsequent mathematicians, notably , whose 1801 synthesized and expanded upon results from Euler, Fermat, and Lagrange, establishing as a rigorous discipline and introducing notation like \phi(n) for the totient function.

Mathematical prerequisites

Euler's totient function

Euler's totient function, denoted \phi(n), counts the number of positive integers less than or equal to n that are relatively prime to n, that is, whose greatest common divisor with n is 1. This function was introduced by Leonhard Euler in his 1763 paper "Theoremata arithmetica nova methodo demonstrata." For example, \phi(1) = 1 since the only positive integer up to 1 is 1, which is coprime to itself. To compute \phi(n), first factorize n into primes: suppose n = p_1^{k_1} p_2^{k_2} \cdots p_r^{k_r}, where the p_i are distinct primes and k_i \geq 1. Then, \phi(n) = n \prod_{i=1}^r \left(1 - \frac{1}{p_i}\right). For a , this simplifies to \phi(p^k) = p^k - p^{k-1}, as exactly one in every p numbers up to p^k is divisible by p, leaving the rest coprime to p^k. This formula arises from inclusion-exclusion over the prime factors, subtracting multiples of each prime and adding back overcounts. The totient function is multiplicative: if \gcd(a, b) = 1, then \phi(ab) = \phi(a) \phi(b). This property extends the computation to composite n by applying the prime power formula to each factor. A brief sketch of the proof uses the , which provides a between the s modulo ab and the pairs of residues modulo a and modulo b. Under this , an is coprime to ab its residues are coprime to a and to b, respectively, so the count \phi(ab) equals the product \phi(a) \phi(b). Illustrative examples include \phi(6), where $6 = 2 \cdot 3, so \phi(6) = 6 \left(1 - \frac{1}{2}\right) \left(1 - \frac{1}{3}\right) = 2; the coprime integers are 1 and 5. For the prime $7, \phi(7) = 7 - 1 = 6, as all integers from 1 to 6 are coprime to 7. For $12 = 2^2 \cdot 3, \phi(12) = 12 \left(1 - \frac{1}{2}\right) \left(1 - \frac{1}{3}\right) = 4; the coprime integers are 1, 5, 7, and 11.

Modular arithmetic and coprimality

Modular arithmetic provides a framework for performing operations on integers where numbers "wrap around" after reaching a fixed modulus n, often visualized as clock arithmetic. Two integers a and b are congruent modulo n, denoted a \equiv b \pmod{n}, if n divides the difference a - b, or equivalently, if a and b leave the same when divided by n. This is an that partitions the integers into n distinct residue classes, each represented by the integers from 0 to n-1. Arithmetic operations such as , , and are well-defined on these classes, preserving congruence: if a \equiv a' \pmod{n} and b \equiv b' \pmod{n}, then a + b \equiv a' + b' \pmod{n} and a \cdot b \equiv a' \cdot b' \pmod{n}. A key concept in is the (gcd) of two s a and n, defined as the largest positive d that divides both a and n without leaving a . The gcd can be computed using the , an efficient iterative process based on the property that \gcd(a, n) = \gcd(n, a \mod n), continuing until the is zero, at which point the last non-zero is the gcd. Two s a and n (with n > 0) are said to be coprime, or relatively prime, if \gcd(a, n) = 1; for example, 5 and 8 are coprime since \gcd(5, 8) = 1, whereas 4 and 6 are not, as \gcd(4, 6) = 2. A fundamental property is that if \gcd(a, n) = 1, then a possesses a modulo n, meaning there exists an b such that a \cdot b \equiv 1 \pmod{n}. The b n can be found using the , which not only computes \gcd(a, n) but also expresses it as a $1 = a \cdot s + n \cdot t for integers s and t, where s \equiv b \pmod{n}. For instance, the of 3 7 is 5, since $3 \cdot 5 = 15 \equiv 1 \pmod{7}. The set of all residue classes n that are coprime to n—precisely those with inverses—forms the of units, denoted U(n), under n. This group has order equal to \phi(n), the number of integers from 1 to n-1 coprime to n.

Statement and examples

Formal statement

Euler's theorem, also known as Euler's totient theorem, states that if n and a are integers with n > 1 and \gcd(a, n) = 1, then a^{\phi(n)} \equiv 1 \pmod{n}, where \phi denotes Euler's totient function. The theorem applies to positive integers n \geq 2, as the case n = 1 is trivial: \phi(1) = 1 and every integer a satisfies \gcd(a, 1) = 1, but congruence modulo 1 holds universally for any integers since 1 divides all differences, rendering the statement vacuously true yet typically excluded from the theorem's scope. The condition \gcd(a, n) = 1 ensures a is coprime to n, meaning no prime dividing n divides a. Although the theorem assumes a positive in its standard formulation, it extends to negative a whenever \gcd(a, n) = 1, since -a \equiv b \pmod{n} for some positive b coprime to n, and the result follows from the multiplicative inverse properties in the multiplicative group modulo n. Exponentiation in the theorem is understood in the modular arithmetic sense: a^k \pmod{n} denotes the remainder when a raised to the power k is divided by n, computed via repeated multiplication modulo n to avoid large intermediates. A key corollary is that the multiplicative order of a modulo n—the smallest positive integer d such that a^d \equiv 1 \pmod{n}—divides \phi(n). This property enables efficient computation of large powers a^k \pmod{n} by reducing the exponent modulo \phi(n), yielding a^k \equiv a^{k \mod \phi(n)} \pmod{n} when \gcd(a, n) = 1.

Illustrative examples

To illustrate Euler's theorem, consider the case where n = 7, a . Euler's gives \phi(7) = 6, since there are six integers from 1 to 6 that are coprime to 7. Take a = 2, which is coprime to 7 as \gcd(2, 7) = 1. The theorem states that $2^6 \equiv 1 \pmod{7}. To verify, compute the powers of 2 modulo 7 step by step:
  • $2^1 = 2 \equiv 2 \pmod{7}
  • $2^2 = 4 \equiv 4 \pmod{7}
  • $2^3 = 8 \equiv 1 \pmod{7}
  • $2^4 = 2 \cdot 1 = 2 \equiv 2 \pmod{7}
  • $2^5 = 2 \cdot 2 = 4 \equiv 4 \pmod{7}
  • $2^6 = 2 \cdot 4 = 8 \equiv 1 \pmod{7}
The cycle repeats every three powers, confirming $2^6 \equiv 1 \pmod{7}. Another example uses n = 10. Here, \phi(10) = 4, as the integers coprime to 10 are 1, 3, 7, and 9. Choose a = 3, with \gcd(3, 10) = 1. The theorem implies $3^4 \equiv 1 \pmod{10}. Compute the powers:
  • $3^1 = 3 \equiv 3 \pmod{10}
  • $3^2 = 9 \equiv 9 \pmod{10}
  • $3^3 = 27 \equiv 7 \pmod{10}
  • $3^4 = 81 \equiv 1 \pmod{10}
This holds as expected. For a composite n that is not prime, take n = 9 = 3^2. Then \phi(9) = 6, corresponding to the coprime residues 1, 2, 4, 5, 7, 8. With a = 2 and \gcd(2, 9) = 1, Euler's theorem gives $2^6 \equiv 1 \pmod{9}. The successive powers modulo 9 are:
  • $2^1 = 2 \equiv 2 \pmod{9}
  • $2^2 = 4 \equiv 4 \pmod{9}
  • $2^3 = 8 \equiv 8 \pmod{9}
  • $2^4 = 16 \equiv 7 \pmod{9}
  • $2^5 = 32 \equiv 5 \pmod{9}
  • $2^6 = 64 \equiv 1 \pmod{9}
The result verifies the theorem. The coprimality condition is essential, as the theorem does not hold otherwise. For n = 4, \phi(4) = 2 (coprime residues: 1, 3), but take a = 2 where \gcd(2, 4) = 2 \neq 1. Then $2^2 = 4 \equiv 0 \pmod{4}, not 1, illustrating why coprimality is required. In practice, when \gcd(a, n) = 1, the theorem enables efficient computation of large exponents by reducing the exponent modulo \phi(n): a^k \equiv a^{k \mod \phi(n)} \pmod{n} for sufficiently large k. This avoids direct calculation of enormous powers.

Proofs

Group-theoretic proof

The multiplicative group of integers modulo n, denoted U(n) or (\mathbb{Z}/n\mathbb{Z})^\times, consists of the set of integers k such that $1 \leq k \leq n and \gcd(k, n) = 1, equipped with the operation of modulo n. This set forms a finite under this operation, with the 1 and group order \phi(n), where \phi is . Lagrange's theorem states that if H is a of a G, then the order of H divides the order of G. A key , applicable to any element g \in G, is that the order of g—the smallest positive integer m such that g^m = e, where e is the —divides |G|. Consequently, g^{|G|} = e, since g^{|G|} = (g^m)^{|G|/m} = e^{|G|/m} = e. To prove Euler's theorem, assume \gcd(a, n) = 1. Then a \mod n is an element of U(n). Let H = \langle a \mod n \rangle be the cyclic subgroup generated by this element, with order m dividing \phi(n) by Lagrange's theorem. Thus, (a \mod n)^{\phi(n)} = e, which means a^{\phi(n)} \equiv 1 \pmod{n}. This proof is elegant due to its brevity and reliance on fundamental group-theoretic principles, requiring only basic knowledge of finite groups and subgroups. It readily generalizes the result to the statement that the exponent of any divides its , encompassing Euler's theorem as a special case in the context of .

Elementary proof using

The elementary proof of Euler's theorem proceeds in three main stages: first establishing the result for prime moduli using , which itself relies on the ; then extending it to moduli via and further applications of the ; and finally handling the general case using the . This approach avoids abstract and relies solely on basic and combinatorial identities. Begin with the base case where n = p is prime and \gcd(a, p) = 1. By , a^{p-1} \equiv 1 \pmod{p}, and \phi(p) = p-1, so the theorem holds. To prove elementarily, first establish the stronger congruence a^p \equiv a \pmod{p} for any a using induction on a and the binomial theorem. For the base case a = 0, $0^p \equiv 0 \pmod{p} holds trivially. Assume b^p \equiv b \pmod{p} for some b \geq 0; then consider (b+1)^p: (b+1)^p = \sum_{k=0}^p \binom{p}{k} b^{p-k} \cdot 1^k. Modulo p, the terms for $1 \leq k \leq p-1 vanish because p divides \binom{p}{k} (as p is prime and divides the numerator but not the denominator). Thus, (b+1)^p \equiv b^p + 1^p \equiv b + 1 \pmod{p}, by the inductive hypothesis. This completes the induction, proving a^p \equiv a \pmod{p}. Since \gcd(a, p) = 1, multiply both sides by the modular inverse of a to obtain a^{p-1} \equiv 1 \pmod{p}. Next, extend to prime powers n = p^k with k \geq 2 and \gcd(a, p) = 1, where \phi(p^k) = p^k - p^{k-1}. Proceed by induction on k. The case k=1 is Fermat's little theorem. Assume the result holds for k-1, so a^{p^{k-1} - p^{k-2}} \equiv 1 \pmod{p^{k-1}}, or equivalently, a^{\phi(p^{k-1})} \equiv 1 \pmod{p^{k-1}}. Then a^{\phi(p^k)} = a^{p \cdot \phi(p^{k-1})} = \left( a^{\phi(p^{k-1})} \right)^p \equiv 1^p = 1 \pmod{p^{k-1}}, but a stronger lifting is needed to reach modulo p^k. To lift the congruence, note that the inductive hypothesis implies a^{\phi(p^{k-1})} = 1 + m p^{k-1} for some integer m with p \nmid m (since if it were divisible by p^k, the order would be smaller, contradicting minimality in related contexts). Now raise to the p-th power: \left( a^{\phi(p^{k-1})} \right)^p = (1 + m p^{k-1})^p. Expand using the : (1 + m p^{k-1})^p = \sum_{j=0}^p \binom{p}{j} (m p^{k-1})^j = 1 + p \cdot (m p^{k-1}) + \sum_{j=2}^p \binom{p}{j} (m p^{k-1})^j. The linear term is p \cdot m p^{k-1} = m p^k \equiv 0 \pmod{p^k}. For j \geq 2, each term has (p^{k-1})^j = p^{j(k-1)} with j(k-1) \geq 2(k-1) = 2k - 2 \geq k (since k \geq 2), and \binom{p}{j} is divisible by p but the higher powers ensure divisibility by p^{k+1} or more. Thus, all terms for j \geq 2 are $0 \pmod{p^k}, yielding (1 + m p^{k-1})^p \equiv 1 \pmod{p^k}. Therefore, a^{\phi(p^k)} \equiv 1 \pmod{p^k}, completing the . For general n > 1 with prime factorization n = p_1^{k_1} \cdots p_r^{k_r}, \phi(n) = \prod \phi(p_i^{k_i}). Since \gcd(a, n) = 1, \gcd(a, p_i^{k_i}) = 1 for each i, so by the prime power case, a^{\phi(p_i^{k_i})} \equiv 1 \pmod{p_i^{k_i}}. As \phi(n) is a multiple of each \phi(p_i^{k_i}), a^{\phi(n)} \equiv 1 \pmod{p_i^{k_i}} for all i. The moduli p_i^{k_i} are pairwise coprime, so by the , a^{\phi(n)} \equiv 1 \pmod{n}. This binomial-based proof, while standard in modern elementary treatments, differs from Euler's original 1763 demonstration, which used polynomial factorizations over the integers modulo n rather than explicit expansions or induction on exponents, predating the development of group theory.

Applications

In number theory computations

Euler's theorem provides a foundational tool for efficient computation of large powers in modular arithmetic, particularly when the base and modulus are coprime. To compute a^k \mod n where \gcd(a, n) = 1, the exponent k can first be reduced modulo \phi(n), yielding a^k \equiv a^{k \mod \phi(n)} \mod n, since a^{\phi(n)} \equiv 1 \mod n. This reduction significantly shortens the exponent, especially for large k, and is typically followed by binary exponentiation (also known as square-and-multiply algorithm), which computes the power in O(\log k) multiplications modulo n. For instance, consider computing $3^{100} \mod [13](/page/13). Since \phi(13) = 12 and \gcd(3, 13) = 1, reduce the exponent: $100 \mod 12 = 4, so $3^{100} \equiv 3^4 \mod [13](/page/13). Now, $3^4 = 81, and $81 \div 13 = 6 remainder $3 (as $13 \times 6 = 78), hence $3^{100} \equiv 3 \mod [13](/page/13). This approach avoids direct computation of the full power, demonstrating the practical speedup. The theorem also aids in finding the multiplicative order of a modulo n, defined as the smallest positive d such that a^d \equiv 1 \mod n (assuming \gcd(a, n) = 1). By Euler's theorem, d must divide \phi(n), allowing algorithms to test only the divisors of \phi(n) rather than all integers up to n-1, which is useful in factoring algorithms and primality testing. In the context of the discrete logarithm problem—finding x such that a^x \equiv b \mod n for given a, b with \gcd(a, n) = 1—Euler's theorem bounds the possible values of x to the range $1 to \phi(n), as the order of a divides \phi(n) and thus limits the search space for brute-force or baby-step giant-step methods. Euler's theorem also explains the periodicity in decimal expansions of rational numbers. For a fraction $1/b in lowest terms where \gcd(b, 10) = 1, the length of the repeating decimal period is the multiplicative order of 10 modulo b, which divides \phi(b) by Euler's theorem. For example, the decimal of $1/7 = 0.\overline{142857} has period 6, and \phi(7) = 6, with the order of 10 modulo 7 being 6. This application extends to understanding the structure of repeating decimals in general. However, Euler's theorem applies only when \gcd(a, n) = 1; if \gcd(a, n) > 1, the exponent cannot be reduced directly, and computations of a^k \mod n may require decomposition via the if the prime factorization of n is known, solving the problem modulo each factor separately.

In cryptography

Euler's theorem plays a foundational role in , particularly in the algorithm, where it ensures the correctness of encryption and decryption processes. In , a public key consists of an exponent e and modulus n = pq (with p and q large primes), while the private key is an exponent d satisfying ed \equiv 1 \pmod{\phi(n)}, where \phi(n) = (p-1)(q-1) is Euler's totient function. Encryption transforms a message m (coprime to n) into ciphertext c = m^e \mod n, and decryption recovers m = c^d \mod n. This works because Euler's theorem states that m^{\phi(n)} \equiv 1 \pmod{n}, so c^d = (m^e)^d = m^{k\phi(n) + 1} = (m^{\phi(n)})^k \cdot m \equiv 1^k \cdot m \equiv m \pmod{n} for some integer k. The security of RSA relies on the computational difficulty of factoring n to compute \phi(n), as knowing \phi(n) allows derivation of d from e. Euler's theorem guarantees the invertibility of the exponentiation operation modulo n, making the trapdoor function secure against adversaries who cannot factor n. Without knowledge of the factors, computing d or directly inverting the encryption is infeasible for large n. RSA was invented in 1977 by Ronald Rivest, , and , who built upon Euler's theorem and the totient function to create the first practical public-key cryptosystem. Their 1978 paper formalized the approach, using \phi(n) explicitly to compute the private exponent. Beyond RSA, Euler's theorem underpins other cryptographic protocols. In the Diffie-Hellman key exchange, the order of elements in the modulo a prime p divides \phi(p) = p-1, ensuring that exponents cycle predictably and enabling secure shared key generation via discrete logarithm hardness. Similarly, employs in groups where Euler's theorem validates the semantic security of ciphertext, with decryption relying on the inverse exponent modulo the group order, often \phi(p). Vulnerabilities arise if \phi(n) becomes known, as it directly compromises private key computation and breaks the system. poses a significant threat through , which efficiently factors n on a quantum computer, thereby revealing \phi(n) and rendering insecure.

Relation to Fermat's little theorem

states that if p is a and a is an not divisible by p, then a^{p-1} \equiv 1 \pmod{p}. This result is a special case of Euler's theorem, as the Euler totient function satisfies \phi(p) = p-1 for prime p. Euler's theorem generalizes by extending it to arbitrary positive integers n \geq 2, replacing the prime modulus p with any n and the exponent p-1 with \phi(n), the number of positive integers up to n that are coprime to n. Fermat stated his theorem without proof around , while Euler published the general version in 1763. The proofs of both theorems are closely connected, particularly in their group-theoretic interpretations. For a prime p, the multiplicative group of integers modulo p, denoted (\mathbb{Z}/p\mathbb{Z})^\times, is cyclic of p-1, so the order of any a (coprime to p) divides p-1, implying a^{p-1} \equiv 1 \pmod{p}. Euler's proof for the prime case mirrors this structure, and the general proof extends it to the group (\mathbb{Z}/n\mathbb{Z})^\times of \phi(n). Fermat's little theorem has implications such as , which states that for a prime p, (p-1)! \equiv -1 \pmod{p}; this follows from the fact that the nonzero residues modulo p form a group under , and pairing inverses yields the product congruent to -1. Euler's theorem leads to broader concepts, such as the \lambda(n), defined as the exponent of the modulo n (the of the orders of its elements), which divides \phi(n) and serves as a universal exponent satisfying a^{\lambda(n)} \equiv 1 \pmod{n} for all a coprime to n. A key difference is that Fermat's little theorem does not hold when replacing the prime p with a composite n using the exponent n-1. For example, with n=15 and a=2 (coprime to 15), $2^{14} \equiv 4 \pmod{15} \not\equiv 1 \pmod{15}, whereas Euler's theorem gives $2^{\phi(15)} = 2^8 = 256 \equiv 1 \pmod{15} since \phi(15)=8.

Euler's criterion and extensions

Euler's criterion provides a method to determine whether an integer a is a quadratic residue modulo an odd prime p, stating that if p does not divide a, then a^{(p-1)/2} \equiv \left( \frac{a}{p} \right) \pmod{p}, where \left( \frac{a}{p} \right) is the Legendre symbol, which equals $1 if a is a quadratic residue modulo p, -1 if not, and $0 if p divides a. This criterion is closely linked to Euler's theorem, as the exponent (p-1)/2 is half of \phi(p) = p-1, the totient function for a prime p. The criterion generalizes to composite moduli via the , which extends the to any positive integer n > 1. Unlike the , the does not necessarily indicate quadratic residuosity for composite n, but it preserves many properties useful in computations involving \phi(n). A further refinement appears in the \lambda(n), defined as the smallest positive integer m such that a^m \equiv 1 \pmod{n} for all integers a coprime to n. This function divides \phi(n) and equals \phi(n) when n is a p^k or twice an $2p^k, providing a minimal exponent that strengthens the conclusion of Euler's theorem. For example, \lambda(15) = 4, which is the least common multiple of \lambda(3) = 2 and \lambda(5) = 4, while \phi(15) = 8. Extensions of Euler's criterion to more general settings include analogs in , such as criteria for higher power residues in the rings of integers of cyclotomic fields where the ring is a . Artin's conjecture on primitive roots relates indirectly, positing that every integer not -1 or a is a primitive root infinitely many primes p, meaning its multiplicative order p equals \phi(p) = p-1, thus achieving the maximum possible order guaranteed by Euler's theorem.

References

  1. [1]
    [PDF] EULER'S THEOREM 1. Introduction Fermat's little ... - Keith Conrad
    The whole theory of periodic decimals (e.g., determining which numbers have purely periodic decimal expansions, and how long the periods can be) is explained by ...
  2. [2]
    Theoremata arithmetica nova methodo demonstrata
    Sep 25, 2018 · Euler presents a third proof of the Fermat theorem, the one that lets us call it the Euler-Fermat theorem; this seems to be the proof that Euler likes best.
  3. [3]
    E271 -- Theoremata arithmetica nova methodo demonstrata
    E271 -- Theoremata arithmetica nova methodo demonstrata. (Demonstration of a new method in the theory of arithmetic). Summary: Euler presents a third proof ...
  4. [4]
    [PDF] Euler's Theorem: Chapter 8.10 - MIT OpenCourseWare
    The use of such a public key cryptography system allows you and Amazon, for example, to engage in a secure transaction without meeting up beforehand in a ...<|control11|><|separator|>
  5. [5]
    Fermat's Little Theorem
    The first proof was given by Leibniz (1646-1716) and the one above was found by Ivory in 1806. Euler proved the theorem in 1736 and its generalization in 1760.Missing: century | Show results with:century
  6. [6]
    [PDF] number theory - ERIC
    Theorem, Euler published a surprisingly elementary proof in 1736, simply using math- ematical induction on the natural number a. Having proved this result ...
  7. [7]
    Leonhard Euler (1707 - 1783) - Biography - MacTutor
    Firstly his work in number theory seems to have been stimulated by Goldbach but probably originally came from the interest that the Bernoullis had in that topic ...
  8. [8]
    Math Origins: The Totient Function
    Euler's example from "Theoremata arithmetica nova methodo demonstrata" ("Demonstration of a new method in the theory of arithmetic"), which Gauss repeated in ...
  9. [9]
    The Shaping of Arithmetic After C. F. Gauss's Disquisitiones ...
    Jun 26, 2007 · After some work by Fermat, and more importantly rather more work by Euler and Lagrange, Gauss established number theory as a central subject in ...
  10. [10]
  11. [11]
    Totient Function -- from Wolfram MathWorld
    The totient function phi(n), also called Euler's totient function, is defined as the number of positive integers <=n that are relatively prime to.
  12. [12]
    proof that Euler φ function is multiplicative - PlanetMath.org
    Mar 22, 2013 · proof that Euler φ φ function is multiplicative ... (http://planetmath.org/ChineseRemainderTheorem) states that gcd(a,t)=1 gcd ⁡ ( a , t ) = 1 if ...
  13. [13]
    Congruence -- from Wolfram MathWorld
    Using congruences, simple divisibility tests to check whether a given number is divisible by another number can sometimes be derived. For example, if the sum of ...
  14. [14]
    3.5: The Division Algorithm and Congruence - Mathematics LibreTexts
    Sep 29, 2021 · Recall that if a and b are integers, then we say that a is congruent to b modulo n provided that n divides a − b , and we write a ≡ b (mod n ).
  15. [15]
    Modular Arithmetic -- from Wolfram MathWorld
    Modular arithmetic is the arithmetic of congruences, sometimes known informally as "clock arithmetic." In modular arithmetic, numbers "wrap around" upon ...
  16. [16]
    3.1: Modulo Operation - Mathematics LibreTexts
    May 19, 2022 · a is congruent to b modulo m denoted as a ≡ b ⁡ ( m ⁢ o ⁢ d n ) , if a and b have the remainder when they are divided by n , for a , b ∈ Z .
  17. [17]
    Euclidean Algorithm -- from Wolfram MathWorld
    The Euclidean algorithm, also called Euclid's algorithm, is an algorithm for finding the greatest common divisor of two numbers a and b.
  18. [18]
    4.2: Euclidean algorithm and Bezout's algorithm - Math LibreTexts
    Sep 19, 2024 · The Euclidean Algorithm is an efficient way of computing the GCD of two integers. It was discovered by the Greek mathematician Euclid.
  19. [19]
    4.1: Greatest Common Divisor - Mathematics LibreTexts
    Jun 28, 2023 · The greatest common divisor of two integers, also known as GCD, is the greatest positive integer that divides the two integers.<|control11|><|separator|>
  20. [20]
    1.20: More Properties of Congruences - Mathematics LibreTexts
    Jan 22, 2022 · The integer \(a\) has an inverse modulo \(m\) if and only if \(a\) and \(m\) are relatively prime. Now that we know exactly which integers have ...
  21. [21]
    5.7: Modular Arithmetic - Mathematics LibreTexts
    Jul 7, 2021 · Modular arithmetic uses only a fixed number of possible results in all its computation. For instance, there are only 12 hours on the face of a clock.
  22. [22]
    1.22: The Groups Um - Mathematics LibreTexts
    Jan 22, 2022 · A residue class [ a ] ∈ Z m is called a unit if there is another residue class [ b ] ∈ Z m such that [ a ] ⁢ [ b ] = [ 1 ] . In this case ...<|control11|><|separator|>
  23. [23]
    Euler's Totient Theorem -- from Wolfram MathWorld
    ### Summary of Euler's Totient Theorem
  24. [24]
    7.5 Modular Exponentiation and Order
    For example, 2 3 ≡ 1 ( mod 7 ) , and the cycle repeats at 2 4 ≡ 2 3 ⋅ 2 ≡ 2 ( mod 7 ) . This “cycle length” is a fundamental property of modular exponentiation, ...
  25. [25]
    [PDF] 9. Euler and Fermat Theorems - UCSD Math
    ϕ(9) = 9 − 3=6. In fact 1, 2, 4, 5, 7, 8 is a reduced residue system. 22 = 4. 23 = 8. 24 ≡ 7. 25 ≡ 5 and. 26 ≡ 1 mod 9. Thus the order of 2 is 6. On the other ...
  26. [26]
    Euler's Theorem
    We note that for a given modulus n , for any value of a ≠ 1 which is not relatively prime n , it must be true that a n ≢ 1 ( mod n ) , as otherwise a would have ...
  27. [27]
    [PDF] Euler's Theorem - Trinity University
    Since (Z/nZ)× has order ϕ(n) (by definition),. 1 + nZ = (a + nZ)&(n) = a&(n) + nZ, according to Theorem 1. But this is equivalent to a&(n) ≡ 1 (mod n). Daileda.
  28. [28]
    [PDF] ma-224 - week 44 applications of lagrange's theorem
    Euler's theorem is about modular multiplication. Recall from last week the multiplicative group of integersmod (n) ... Lagrange's theorem says that n = k ...
  29. [29]
    [PDF] Fermat's Little Theorem - CS@Cornell
    ○ Therefore (a + 1) p ≡ a p + 1 (mod p). Page 52. Another proof (algebraic). ○ Therefore (a + 1) p ≡ a p + 1 (mod p). ○ But by the inductive hypothesis, a p ≡ a ...
  30. [30]
    [PDF] Efficient Modular Exponentiation
    Feb 27, 2018 · ... Euler's theorem allows us to reduce m modulo. ϕ ... If (a, n) > 1, Euler's theorem doesn't apply so we can't necessarily reduce the exponent.
  31. [31]
    [PDF] DTTF/NB479: Dszquphsbqiz Day 9 Announcements: Questions ...
    Euler's Theorem can also lead to computations that are more efficient than modular exponentiation as long as gcd(a,n) = 1. Examples: 1. Find last 3 digits of ...<|control11|><|separator|>
  32. [32]
    Number Theory - The Order of a Unit
    Thus by Euler's Theorem, the order of a divides ϕ ( n ) . These theorems are special cases of Lagrange's Theorem from group theory. (Fermat and Euler died long ...Missing: cryptography | Show results with:cryptography
  33. [33]
    [PDF] Lecture Notes on Quantum Algorithms - UMD Computer Science
    Apr 17, 2025 · Discrete log and the hidden subgroup problem. In this lecture we will discuss the discrete logarithm problem and its relevance to cryptography.
  34. [34]
    [PDF] A Method for Obtaining Digital Signatures and Public-Key ...
    We demonstrate in this paper how to build these capabilities into an electronic mail system. At the heart of our proposal is a new encryption method. This ...
  35. [35]
    [PDF] New Directions in Cryptography - Stanford Electrical Engineering
    [5] W. Diffie and M. E. Hellman, “Multiuser cryptographic techniques,” presented at National Computer Conference, New York, June 7-10,. 1976 ...
  36. [36]
    [PDF] A public key cryptosystem and a signature scheme based on ...
    The paper described a public key cryptosystem and a signature scheme based on the difficulty of computing discrete logarithms over finite fields. The ...
  37. [37]
    [quant-ph/9508027] Polynomial-Time Algorithms for Prime ... - arXiv
    Aug 30, 1995 · This paper considers factoring integers and finding discrete logarithms, two problems which are generally thought to be hard on a classical computer.
  38. [38]
    Fermat's Little Theorem -- from Wolfram MathWorld
    See also. Binomial Theorem, Carmichael Number, Chinese Hypothesis, Composite Number, Compositeness Test, Euler's Theorem ... Prime Number Properties · Number ...
  39. [39]
    3.5: Theorems of Fermat, Euler, and Wilson - Mathematics LibreTexts
    Jul 7, 2021 · We then state Euler's theorem which states that the remainder of ⁡ when divided by a positive integer that is relatively prime to is 1. We ...
  40. [40]
    [PDF] On the range of Carmichael's universal-exponent function
    Dec 21, 2013 · Let λ denote Carmichael's function, so λ(n) is the universal expo- nent for the multiplicative group modulo n. It is closely related to Eu- ler ...
  41. [41]
    Euler's Criterion -- from Wolfram MathWorld
    Euler's Criterion for p an odd prime and a positive integer a which is not a multiple of p, a^((p-1)/2)=(a/p) (mod p), where (a|p) is the Legendre symbol.<|control11|><|separator|>
  42. [42]
    Jacobi Symbol -- from Wolfram MathWorld
    ### Summary of Jacobi Symbol Generalization and Relation to Euler's Theorem
  43. [43]
  44. [44]
    Artin's Conjecture -- from Wolfram MathWorld
    ### Summary of Artin's Conjecture on Primitive Roots