\end{item}
\end{itemize}
%
- The factorial of the number $10$ is $\factorial{10}$.
+ The factorial of the number $10$ is $\factorial{10}$, and the
+ least common multiple of $4$ and $6$ is $\lcm{\set{4,6}} =
+ 12$.
The direct sum of $V$ and $W$ is $\directsum{V}{W}$. Or three
things, $\directsumthree{U}{V}{W}$. How about more things? Like
% A seven-tuple of things.
\newcommand*{\septuple}[7]{ \left({#1},{#2},{#3},{#4},{#5},{#6},{#7}\right) }
+% 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
+
% The factorial operator.
\newcommand*{\factorial}[1]{ {#1}! }