enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Greatest common divisor - Wikipedia

    en.wikipedia.org/wiki/Greatest_common_divisor

    The greatest common divisor (GCD) of integers a and b, at least one of which is nonzero, is the greatest positive integer d such that d is a divisor of both a and b; that is, there are integers e and f such that a = de and b = df, and d is the largest such integer. The GCD of a and b is generally denoted gcd (a, b).

  3. Euclidean algorithm - Wikipedia

    en.wikipedia.org/wiki/Euclidean_algorithm

    In mathematics, the Euclidean algorithm, [note 1] or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers (numbers), the largest number that divides them both without a remainder. It is named after the ancient Greek mathematician Euclid, who first described it in his Elements (c. 300 BC).

  4. Binary GCD algorithm - Wikipedia

    en.wikipedia.org/wiki/Binary_GCD_algorithm

    The binary GCD algorithm, also known as Stein's algorithm or the binary Euclidean algorithm, [1][2] is an algorithm that computes the greatest common divisor (GCD) of two nonnegative integers. Stein's algorithm uses simpler arithmetic operations than the conventional Euclidean algorithm; it replaces division with arithmetic shifts, comparisons ...

  5. Extended Euclidean algorithm - Wikipedia

    en.wikipedia.org/wiki/Extended_Euclidean_algorithm

    In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that. This is a certifying algorithm, because the gcd is the only ...

  6. Lehmer's GCD algorithm - Wikipedia

    en.wikipedia.org/wiki/Lehmer's_GCD_algorithm

    Lehmer's GCD algorithm. Lehmer's GCD algorithm, named after Derrick Henry Lehmer, is a fast GCD algorithm, an improvement on the simpler but slower Euclidean algorithm. It is mainly used for big integers that have a representation as a string of digits relative to some chosen numeral system base, say β = 1000 or β = 2 32.

  7. Polynomial greatest common divisor - Wikipedia

    en.wikipedia.org/wiki/Polynomial_greatest_common...

    hide. In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common divisor of two integers. In the important case of univariate polynomials over a field the ...

  8. Coprime integers - Wikipedia

    en.wikipedia.org/wiki/Coprime_integers

    A fast way to determine whether two numbers are coprime is given by the Euclidean algorithm and its faster variants such as binary GCD algorithm or Lehmer's GCD algorithm. The number of integers coprime with a positive integer n, between 1 and n, is given by Euler's totient function, also known as Euler's phi function, φ(n).

  9. Lamé's theorem - Wikipedia

    en.wikipedia.org/wiki/Lamé's_theorem

    Lamé's theorem. Lamé's Theorem is the result of Gabriel Lamé's analysis of the complexity of the Euclidean algorithm. Using Fibonacci numbers, he proved in 1844 [ 1 ][ 2 ] that when looking for the greatest common divisor (GCD) of two integers a and b, the algorithm finishes in at most 5 k steps, where k is the number of digits (decimal) of ...