Worked Examples
LCM and GCF of 12, 18, and 30
Prime factors: 12 = 22 x 3, 18 = 2 x 32, 30 = 2 x 3 x 5.
GCF takes the shared lowest powers: 2 x 3 = 6.
LCM takes the highest powers: 22 x 32 x 5 = 180.
GCF of 8, 12, and 20
Factors of 8: 1, 2, 4, 8. Factors of 12: 1, 2, 3, 4, 6, 12. Factors of 20: 1, 2, 4, 5, 10, 20.
Common factors are 1, 2, and 4, so the GCF is 4.
LCM of 18 and 24
18 = 2 x 32 and 24 = 23 x 3.
Use the highest powers: 23 x 32 = 8 x 9 = 72.
Zero and negative example: -12, 0, 18
With absolute values, the list becomes 12, 0, 18.
GCF(12, 0, 18) = 6. Because one input is 0, the LCM of the list is 0.
