How did someone came up with an idea that if we do prime factorization of two numbers and then multiply all the prime factors but including common ones only once, we will get a number that is the least common multiple of these two numbers?
And why do we take the repeating factors only once? I know this question might sound silly but I am a total beginner and math who don't know anything. Please help me understand this.