gcd18
gcd18 is a term used in mathematics and computer science to denote the greatest common divisor of the fixed integer 18 with another integer. Formally, gcd18(n) = gcd(18, n). Since 18 factors as 2 times 3 squared, the gcd must be one of the positive divisors of 18: 1, 2, 3, 6, 9, or 18.
For example, gcd18(24) equals 6, since 18 and 24 share the divisors 1, 2, 3, and 6,
Computation of gcd18 can be done with the Euclidean algorithm, but because one argument is fixed at
Properties of gcd18 include that all possible outputs are divisors of 18, and the value reflects the