+% The "least common multiple of" function. Takes a nonempty set of
+% things that can be multiplied and ordered as its argument. Name
+% chosen for synergy with \gcd, which *does* exist already.
+\newcommand*{\lcm}[1]{ \operatorname{lcm}\of{{#1}} }
+\ifdefined\newglossaryentry
+ \newglossaryentry{lcm}{
+ name={\ensuremath{\lcm{X}}},
+ description={the least common multiple of the elements of $X$},
+ sort=l
+ }
+\fi
+