[Solved] How do I find the least b from lcm(a,b) = c?
You can find the least common multiple using prime factorization. Here, lcm(a, b) has to contain all the prime factors of a and b in their highest multiple they appear in in any of the two numbers. For example, 8 = 2^3 and 12 = 2^2 * 3, so lcm(8, 12) = 2^3 * 3 … Read more