Skip to main content
CalculoraCalculora
Chuyển Đổi Tiền Tệ
CalculoraCalculora

Nền tảng máy tính toàn diện. Công cụ miễn phí, nhanh và chính xác cho mọi nhu cầu.

100% riêng tư - tất cả các phép tính diễn ra trong trình duyệt, không có dữ liệu nào được gửi đến máy chủMiễn phí mãi mãi - không paywall, không đăng ký, không cần tài khoản

Phổ Biến

  • Máy tính BMI
  • Máy tính khoản vay
  • Máy tính tuổi
  • Máy tính thế chấp
  • Máy tính phần trăm
  • Máy tính khoa học

Toán Học

  • Máy Tính Thống Kê
  • Máy Giải Phương Trình
  • Máy tính phân số
  • Máy Tính Phân Tích Thừa Số Nguyên Tố
  • Máy Tính GCD & LCM
  • Máy Tính Logarit

Tài Chính

  • Máy Tính FIRE
  • Máy Tính Thanh Toán Nợ Theo Số Dư
  • Máy tính đầu tư
  • Máy tính hưu trí
  • Máy tính lương
  • Máy tính ROI

Pháp Lý

  • Xem Tất Cả
  • Danh Mục
  • Chuyển Đổi Tiền Tệ
  • Sơ Đồ Trang
  • Trò Chơi & Công Cụ
  • Về Chúng Tôi
  • Liên Hệ
  • Chính Sách Bảo Mật
  • Điều Khoản Dịch Vụ

Ngôn Ngữ

  • 🇺🇸English
  • 🇸🇦العربية
  • 🇪🇸Español
  • 🇩🇪Deutsch
  • 🇫🇷Français
  • 🇮🇳हिन्दी
  • 🇮🇩Bahasa Indonesia
  • 🇮🇹Italiano
  • 🇯🇵日本語
  • 🇰🇷한국어
  • 🇧🇷Português
  • 🇷🇺Русский
  • 🇹🇷Türkçe
  • 🇻🇳Tiếng Việt
  • 🇧🇩বাংলা
  • 🇨🇳中文

© 2026 Calculora. Bảo lưu mọi quyền.

Được xây dựng với - 100% miễn phí

Không có máy chủ - trang web tĩnh hoàn toàn, không thu thập dữ liệu

  1. Trang Chủ
  2. Toán Học
  3. Máy Tính GCD & LCM

Máy Tính GCD & LCM

Calculate the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) with complete Euclidean algorithm steps. Supports two or more numbers.

Máy Tính GCD & LCM là gì?

The Greatest Common Divisor (GCD) and Least Common Multiple (LCM) are two of the most important concepts in elementary number theory, with applications from simplifying fractions in middle school to cryptographic algorithms that secure the internet.

The Euclidean algorithm, described by Euclid around 300 BC, is one of the oldest and most efficient algorithms in mathematics. It computes the GCD in O(log(min(a,b))) steps, terminating rapidly even for very large numbers. The algorithm applies the identity: GCD(a, b) = GCD(b, a mod b) repeatedly until the remainder is zero.

This calculator shows the complete Euclidean algorithm step by step for two numbers, and also computes GCD and LCM for lists of multiple numbers using the generalization: GCD(a, b, c) = GCD(GCD(a, b), c).

Công Thức

Euclidean Algorithm:
GCD(a, b) = GCD(b, a mod b) until b = 0
 
LCM from GCD:
LCM(a, b) = |a × b| / GCD(a, b)
 
For multiple numbers:
GCD(a, b, c) = GCD(GCD(a, b), c)
LCM(a, b, c) = LCM(LCM(a, b), c)

Cách Tính

  1. Enter two positive integers a and b.
  2. Apply integer division: a = q×b + r.
  3. Replace a with b and b with r. Repeat until r = 0.
  4. The last non-zero remainder is the GCD.
  5. Compute LCM = |a × b| / GCD using the fundamental identity.
  6. Use Multiple Numbers mode for three or more numbers.

Ví Dụ

Find GCD(48, 18): 48 = 2×18 + 12 → 18 = 1×12 + 6 → 12 = 2×6 + 0. GCD = 6. LCM = |48×18|/6 = 864/6 = 144. Check: 144/48 = 3 ✓, 144/18 = 8 ✓.

Các Thuật Ngữ Chính Được Giải Thích

GCD
Largest integer dividing both numbers without remainder
LCM
Smallest positive integer divisible by both numbers
Co-prime
Two numbers with GCD = 1, sharing no common prime factors
Euclidean algorithm
Ancient algorithm computing GCD by repeated division
Modulo operation
a mod b is the remainder when a is divided by b
Divisibility
a divides b if b/a has no remainder

Trường Hợp Sử Dụng Phổ Biến

  • Simplifying fractions: reduce a/b by dividing both by GCD(a, b)
  • Adding fractions with different denominators: find LCM of denominators
  • Scheduling: finding when two recurring events will next coincide
  • RSA key generation: checking that exponent e is co-prime with φ(n)
  • Gear ratio problems in mechanical engineering
  • Tile pattern design: finding the smallest repeating unit

Câu Hỏi Thường Gặp

What is GCD and how is it calculated?
GCD (Greatest Common Divisor) is the largest positive integer that divides both a and b without remainder. The Euclidean algorithm computes it efficiently: repeatedly replace (a, b) with (b, a mod b) until b = 0. The last non-zero value is the GCD.
What is LCM and what is it used for?
LCM (Least Common Multiple) is the smallest positive integer divisible by both a and b. It is used for adding fractions with different denominators, scheduling problems, and music theory.
What is the relationship between GCD and LCM?
GCD(a, b) × LCM(a, b) = |a × b|. Once you know the GCD, the LCM is simply |a × b| / GCD(a, b). This is more efficient than listing multiples.
What does co-prime mean?
Two numbers are co-prime (relatively prime) if their GCD is 1 — they share no common prime factors. Co-primality is fundamental in modular arithmetic, cryptography, and the Chinese Remainder Theorem.

Công Cụ Liên Quan

Điều này có hữu ích không?
Máy tính phần trăm
Máy tính khoa học
Máy tính phân số
Máy Tính Số Mũ
Máy Tính Ma Trận
Máy Giải Phương Trình
Máy Tính GCD & LCM – Tính Toán Nhanh