ແກ້ໄຂບັນຫາຄະນິດສາດໃດໆ
ຂໍ້ສົມມຸດ, ຜົນອອກມາ, ຕົວລວມ, ມາດິດ, ສາມຫຼ່ຽມ, ຕົວເລກຕົ້ນ, ຕົວຊີ້ວັດ ຫຼື ບັນຫາຄຳທີ່ຄູສອນແບ່ງອອກເປັນສ່ວນຕ່າງໆ.
ຂັ້ນຕອນຕໍ່ຂັ້ນຕອນ
- \gcd(2, 3)
Use Euclid's algorithm: replace the larger number by its remainder on division by the smaller, until the remainder is 0.
- 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(2, 3) = 1
Euclid gives the gcd.
- \operatorname{lcm}(2, 3) = \frac{2 \times 3}{\gcd(2, 3)} = \frac{6}{1} = 6
lcm × gcd = a × b, so divide the product by the gcd.
ເປີດເຜີຍຄຳຕອບ
\operatorname{lcm}(2, 3) = 6