# Greatest common divisor (gcd)

Working with polynomials? See gcd (Polynomials)

Returns the greatest common divisor of a set of integers.

## Syntax

## Description

#### gcd(Integer, ..., Integer)

Given a set of integers , ..., , returns the largest number that divides , ..., simultaneously.

#### gcd(List)

Given a list of integers , returns the largest number that divides , ..., simultaneously.

#### gcd(Vector)

Given a vector of integers , returns the largest number that divides , ..., simultaneously.

#### gcd(Fraction, Fraction)

Given two fractions and , returns its greatest common divisor defined as