Greatest common divisor
Definition
Let and be integers that are not both . A common divisor of and is an integer such that and . The greatest common divisor is the largest common divisor of and . By convention, .
Remarks
The number is positive when and are not both , because is a common divisor. An equivalent definition: is the unique nonnegative common divisor of and that each common divisor divides. This form also gives . For all integers , . The Euclidean algorithm computes .
Explanations
L1 human
List the positive divisors of each number, and take the largest number that is in both lists. The divisors of are , and the divisors of are . Thus .
What this node needs for W2
- edge instance_of in: one example (0 of 1)
- edge not_instance_of in: one non-example that fails one clause (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What this needs
To read this node, read these 2 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Greatest common divisor definition
What depends on this
41 nodes use this node, directly or through other nodes.
- Pythagorean triple 01G1WY1GVX
- Diffie–Hellman key exchange 01TKKESHSB
- Generalized Euclid's lemma 03BAREW1Z5
- Chinese remainder theorem for non-coprime moduli 04SJTX9P4N
- Multiplicativity of the divisor function 04WC36XKV6
- Existence of primitive roots modulo a prime 04XGKK8WQW
- Fermat numbers are pairwise coprime 05598J0Y8R
- Number of invertible residues modulo n 06RJWZCG95
- Lcm of coprime integers 07CZYE06ZJ
- Fermat's right triangle theorem 086BE0J3FZ
- Discrete logarithm 09B4X51J09
- Sum of the totient over the divisors 09JXE6XMCC
- Cancellation in congruences 09RDZZGJZ9
- Multiplicative function 0AP80TT660
- Totient of a prime power 0AVY8HKBGD
- Consecutive Fibonacci numbers are coprime 0D3PFXEAKF
- Bézout's identity 0DQVHMYAGA
- Primitive root theorem 0E0DNQK22P
- Fermat's Last Theorem for n = 4 0E741HSMJ1
- Chinese remainder theorem 0FNN9B4W64
- Multiplicativity of the totient function 0FSJA9M43W
- Coprime integers 0GFKP8F8AG
- Dirichlet's theorem on arithmetic progressions 0GNVN3CA2P
- Completely multiplicative function 0GS27TKF1V
- RSA cryptosystem 0HM584C465
- Totient of a prime 0HY1MXMEN9
- Reduced residue system 0J0QEN1DZR
- Classification of Pythagorean triples 0KF3J2KAER
- Primitive root modulo n 0KM2CJ80G7
- Existence of inverses modulo n 0M67FWZWPQ
- Farey sequence 0PN4QJE969
- Dirichlet convolution of multiplicative functions is multiplicative 0PR88XHDMB
- Integers modulo a prime form a field 0R8YXRC9AJ
- Multiplicative order 0SBRX5CZ5R
- Carmichael number 0TA7WT68RK
- Product of the gcd and the lcm 0TDY6JZHKS
- Frobenius coin problem 0V11FEXK08
- Multiplicativity of the Möbius function 0VB9G5B034
- Euler's theorem 0VC4DVE7DQ
- Euler's totient function 0VV04M41AN
- The order modulo p divides p − 1 0Y4B7P0GS8
Sources
What links here
Used by
- Pythagorean triple 01G1WY1GVX
- Chinese remainder theorem for non-coprime moduli 04SJTX9P4N
- Cancellation in congruences 09RDZZGJZ9
- Consecutive Fibonacci numbers are coprime 0D3PFXEAKF
- Bézout's identity 0DQVHMYAGA
- Coprime integers 0GFKP8F8AG
- Farey sequence 0PN4QJE969
- Product of the gcd and the lcm 0TDY6JZHKS