randRange( 2, 6 ) randRange( 1, 10 ) randRangeExclude( 1, 10, [ START_A ] ) START_A * C START_B * C Math.max( A, B ) Math.min( A, B ) A * B getGCD( A, B ) PRODUCT / GCD getMultiples( BIGGER, LCM )

What is the least common multiple of A and B?

Another way to say this is:

\lcm(A, B) = {?}

LCM

The least common multiple is the smallest number that is a multiple of A and B.

We know that A x B (or PRODUCT) is a common multiple, but is it the least common multiple?

Write out the multiples of BIGGER until we find a number divisible by SMALLER.

M,

So, LCM is the least common multiple of A and B.