Ratkaise kaikki matematiikan ongelmat
Yhtälöt, johdannaiset, integraalit, matriisit, kolmiot, prikes, tilastot – tai sanaongelma, jonka ohjaaja purkaa osiin.
Askel kerrallaan
- \gcd(3, 5)
Use Euclid's algorithm: replace the larger number by its remainder on division by the smaller, until the remainder is 0.
- 5 = 1 \times 3 + 2
Divide 5 by 3: quotient 1, remainder 2.
- 3 = 1 \times 2 + 1
Divide 3 by 2: quotient 1, remainder 1.
- 2 = 2 \times 1 + 0
Divide 2 by 1: quotient 2, remainder 0.
- \gcd(3, 5) = 1
Euclid gives the gcd.
- \operatorname{lcm}(3, 5) = \frac{3 \times 5}{\gcd(3, 5)} = \frac{15}{1} = 15
lcm × gcd = a × b, so divide the product by the gcd.
Paljasta vastaus
\operatorname{lcm}(3, 5) = 15