TL;DR: There are a number of ways of extending the idea of a "least common multiple" to nonpositive numbers (including zero). There are advantages and disadvantages to each, but it is ultimately a matter of convention. Pick a convention, and stick to it.
In mathematics, one typically starts with axioms and definitions, and then proves results which follow from there. All of these axioms and definitions are subject to convention and convenience, and different mathematicians will often use slightly different definitions, depending on what the overall goal of their work is. In the case of the least common multiple, a common set of definitions is something like the following:
Definition: Let $\mathbb{N}$ denote the set of positive integers. If $a,b\in \mathbb{N}$, then the least common multiple of $a$ and $b$, denoted by $\operatorname{lcm}(a,b)$ or $(a,b)$, is the smallest natural number $m$ such that
$$ a \mid m \qquad\text{and}\qquad
b \mid m. $$
In this framework, $\operatorname{lcm}(a,0)$ is undefined for all $a \in \mathbb{N}$ (as well as for $a=0$), since the least common multiple of $a$ and $b$ is only defined for natural numbers (which, in this context, are strictly positive). This notion of least common multiple is useful in a lot of applications—for example, some kinds of apportionment problems (where it doesn't make sense to consider non-positive numbers), certain encryption protocols, and in approximating orbital resonances. Not to mention the fact that a lot of important and interesting number theoretic results are proved for the natural numbers (rather than the integers).
That said, it is reasonable to ask if this concept can be extended to the integers, and it seems reasonably "obvious" how to define the least common multiple of $a$ and $b$ when neither is zero:
Definition: If $a,b\in \mathbb{Z}\setminus \{0\}$, then the least common multiple of $a$ and $b$, denoted by $\operatorname{lcm}(a,b)$ or $(a,b)$, is the smallest natural number $m$ such that
$$ a \mid m \qquad\text{and}\qquad
b \mid m. $$
Again, the least common multiple is always positive. But this does leave a bit of a problem, in that neither $a$ nor $b$ is permitted to be zero in this definition. So, what should be done about zero?
Given an integer $a$, there are a number of options:
- leave $\operatorname{lcm}(a,0)$ undefined; or
- define $\operatorname{lcm}(a,0)=0$.
Note that this list is not exhaustive, but it gives an idea of where to go. Each of these possible choices has advantages and disadvantages. For example, for $a,b\in\mathbb{N}$,
$$ ab = \operatorname{lcm}(a,b) \cdot \operatorname{gcd}(a,b). $$
This formula can be generalized to non-zero integers by throwing in something extra to account for the signs of $a$ and $b$, but it fails pretty miserably if either $a$ or $b$ is zero (how should $\operatorname{gcd}(a,0)$ be defined to make the formula work?!). This suggests that it might be best to leave $\operatorname{lcm}(a,0)$ undefined.
On the other hand, taking $\operatorname{lcm}(a,0) = 0$ makes some sense. One has to be careful that this is regarded as a special case (since zero is a multiple of any integer, defining $\operatorname{lcm}(a,b)$ to be the smallest nonnegative integer which divides $a$ and $b$ is going to be a problem...), but making zero a special case should be fine.
Ultimately, either convention can be adopted (and, likely, there are other conventions that I am not creative enough to think up), as long as one is clear and consistent about their choice. The particular choice of convention will depend on what the goals of the author are, and what theorems or results that author hopes to derive from that definition.
Finally, very quick rundown of the conventions chosen by some bits of software available to me:
- Google Sheets:
lcm(1,0) = 0
and lcm(0,0) = 0
.
- Excel for Mac (version 16.16.27:
lcm(1,0) = 0
and lcm(0,0) = 0
- Excel 365 (via SharePoint):
lcm(1,0) = 0
and lcm(0,0) = 0
- Apple Numbers (version 11.1):
lcm(1,0) = 0
and lcm(0,0) = 0
- Wolfram|Alpha:
lcm(1,0) = 0
and lcm(0,0) = 0
- Desmos:
lcm(1,0) = 0
and lcm(0,0) = undefined
- GeoGebra:
lcm(1,0) = 0
and lcm(0,0) = 0
- Maple Calculator (a mobile app):
lcm(1,0) = 0
and lcm(0,0) = 0
- PARI / GP:
lcm(1,0) = 0
and lcm(0,0) = 0
[1]
- Maxima:
lcm(1,0) = 0
and lcm(0,0) = 0
[1]
Based on this very unscientific sample, it would appear that most of the commonly used computational environments to which I have access have adopted the convention that $\operatorname{lcm}(a,0) = 0$.
[1] Thank you to Martin R for this one.