When.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.

  3. Euclidean algorithm - Wikipedia

    en.wikipedia.org/wiki/Euclidean_algorithm

    The Euclidean algorithm is based on the principle that the greatest common divisor of two numbers does not change if the larger number is replaced by its difference with the smaller number. For example, 21 is the GCD of 252 and 105 (as 252 = 21 × 12 and 105 = 21 × 5) , and the same number 21 is also the GCD of 105 and 252 − 105 = 147 .

  4. Lehmer's GCD algorithm - Wikipedia

    en.wikipedia.org/wiki/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 .

  5. Bézout's identity - Wikipedia

    en.wikipedia.org/wiki/Bézout's_identity

    As an example, the greatest common divisor of 15 and 69 is 3, and 3 can be written as a combination of 15 and 69 as 3 = 15 × (−9) + 69 × 2, with Bézout coefficients −9 and 2. Many other theorems in elementary number theory, such as Euclid's lemma or the Chinese remainder theorem , result from Bézout's identity.

  6. Dixon's factorization method - Wikipedia

    en.wikipedia.org/wiki/Dixon's_factorization_method

    For example, if N = 84923, (by starting at 292, the first number greater than √ N and counting up) the 505 2 mod 84923 is 256, the square of 16. So (505 − 16)(505 + 16) = 0 mod 84923. Computing the greatest common divisor of 505 − 16 and N using Euclid's algorithm gives 163, which is a factor of N.

  7. Pythagorean triple - Wikipedia

    en.wikipedia.org/wiki/Pythagorean_triple

    For example, (3, 4, 5) is a primitive Pythagorean triple whereas (6, 8, 10) is not. Every Pythagorean triple can be scaled to a unique primitive Pythagorean triple by dividing (a, b, c) by their greatest common divisor. Conversely, every Pythagorean triple can be obtained by multiplying the elements of a primitive Pythagorean triple by a ...

  8. Computational complexity of mathematical operations - Wikipedia

    en.wikipedia.org/wiki/Computational_complexity...

    Graphs of functions commonly used in the analysis of algorithms, showing the number of operations versus input size for each function. The following tables list the computational complexity of various algorithms for common mathematical operations.

  9. Gauss's lemma (polynomials) - Wikipedia

    en.wikipedia.org/wiki/Gauss's_lemma_(polynomials)

    (A polynomial with integer coefficients is primitive if it has 1 as a greatest common divisor of its coefficients. [note 2]) A corollary of Gauss's lemma, sometimes also called Gauss's lemma, is that a primitive polynomial is irreducible over the integers if and only if it is irreducible over the rational numbers. More generally, a primitive ...