[Verse 1] Two numbers dancing, need to find their stage Where both can meet without a cage The smallest multiple they both can share LCM's the treasure waiting there [Chorus] Take the product, divide by GCD That's the formula, LCM you see Greatest common times the least multiple Always equals product, mathematical GCD times LCM equals A times B This relationship will set you free [Verse 2] Twelve and eighteen need a common ground List their multiples, see what can be found Twelve gives twenty-four, thirty-six and more Eighteen matches at thirty-six's door [Chorus] Take the product, divide by GCD That's the formula, LCM you see Greatest common times the least multiple Always equals product, mathematical GCD times LCM equals A times B This relationship will set you free [Bridge] When the numbers are coprime and clean GCD is one, if you know what I mean Product stays the same, no division needed LCM equals the product, mission completed [Verse 3] Absolute value keeps it positive Even when negatives want to live The formula works for any pair you choose This mathematical bond you'll never lose [Final Chorus] Take the product, divide by GCD That's the formula, LCM you see Greatest common times the least multiple Always equals product, mathematical GCD times LCM equals A times B This pattern holds for eternity [Outro] Two factors linked in perfect harmony GCD and LCM, mathematical symphony
← GCD and the Euclidean Algorithm | Definition and Fundamental Theorem →