LCM

is a dyadic scalar function which returns the Least Common Multiple of two integer arguments. It is an extension of And which maintains the same results on Boolean arguments and the same identity element 1, in the same way that GCD extends Or.

Extended definition
For positive integer arguments, the least common multiple is the smallest positive number which is divisible by both numbers. If one of the arguments is zero, the LCM function returns zero.

While the mathematical definition of LCM does not cover non-integers, some implementations accept them as arguments. In this case, the return value of  is chosen so that both   and   are integers (or Gaussian integers, when X and/or Y are complex numbers).

Description
The LCM of two numbers is their product divided by the GCD.

Documentation

 * Dyalog
 * J Dictionary, NuVoc