Arithmetic & Number Theory

GCD of a List

Greatest common divisor of several integers.

Formula

Formula
gcd(a1, a2, …, an)

Variables

SymbolDefinitionType & rangeUnitsRole
aᵢ list of integers (not all zero) integers (ℤ) result

Try it yourself

Interactive calculator
comma or space separated numbers
Result

Worked examples

Example 1
Givenintegers = 24, 36, 60
Result12
Example 2
Givenintegers = 17, 34, 51
Result17