어떤 수학 문제든 해결
방정식, 유도, integrals, 매트릭스, 삼각형, 소수, 통계, 또는 단어 문제 교사 부분으로 깨지고.
단계별로
- \gcd(12, 18)
Use Euclid's algorithm: replace the larger number by its remainder on division by the smaller, until the remainder is 0.
- 18 = 1 \times 12 + 6
Divide 18 by 12: quotient 1, remainder 6.
- 12 = 2 \times 6 + 0
Divide 12 by 6: quotient 2, remainder 0.
- \gcd(12, 18) = 6
Euclid gives the gcd.
- \operatorname{lcm}(12, 18) = \frac{12 \times 18}{\gcd(12, 18)} = \frac{216}{6} = 36
lcm × gcd = a × b, so divide the product by the gcd.
답을 드러내세요
\operatorname{lcm}(12, 18) = 36