ตัวหารร่วมมาก (ห.ร.ม.) หรือ Greatest Common Divisor (GCD) คือ จำนวนเต็มบวกที่มีค่ามากที่สุดที่สามารถนำไปหารจำนวนเต็มตั้งแต่ 2 จำนวนขึ้นไปได้ลงตัวพอดี ห.ร.ม. เป็นพื้นฐานสำคัญในการลดทอนเศษส่วนให้เป็นเศษส่วนอย่างต่ำ และการแก้โจทย์ปัญหาที่เกี่ยวกับการแบ่งสิ่งของให้มีขนาดเท่าๆ กันและได้ชิ้นใหญ่ที่สุด
The Greatest Common Divisor (GCD), also known as the Greatest Common Factor (GCF), is the largest positive integer that divides two or more integers without leaving a remainder. It is fundamental for simplifying fractions and solving word problems involving dividing items into the largest possible equal parts.
🔍 การหา ห.ร.ม. โดยการพิจารณาตัวประกอบ 🔍 Finding GCD by Listing Factors
วิธีนี้คือการหา ตัวประกอบทั้งหมด ของแต่ละจำนวน จากนั้นมองหาตัวประกอบที่มีซ้ำกัน (ตัวหารร่วม) และเลือกตัวที่มี ค่ามากที่สุด มาเป็นคำตอบ วิธีนี้เหมาะสำหรับตัวเลขที่มีค่าน้อย
This method involves listing all factors of each number, identifying the common factors, and then selecting the greatest one as the answer. This is best suited for small numbers.
จงหา ห.ร.ม. ของ 12 และ 18
Find the GCD of 12 and 18
จงหา ห.ร.ม. ของ 16 และ 24
Find the GCD of 16 and 24
จงหา ห.ร.ม. ของ 15 และ 28
Find the GCD of 15 and 28
จงหา ห.ร.ม. ของ 8, 12 และ 20
Find the GCD of 8, 12 and 20
จงหา ห.ร.ม. ของ 9, 21 และ 30
Find the GCD of 9, 21 and 30
🧩 การหา ห.ร.ม. โดยการแยกตัวประกอบ 🧩 Finding GCD by Prime Factorization
การแยกตัวประกอบ คือการเขียนจำนวนในรูปผลคูณของ จำนวนเฉพาะ (Prime Numbers) จากนั้นให้เลือก จำนวนเฉพาะที่มีร่วมกันในทุกบรรทัด มาคูณกัน ผลลัพธ์ที่ได้คือ ห.ร.ม.
Prime factorization involves writing a number as a product of prime numbers. To find the GCD, select the common prime factors present in all rows and multiply them together.
จงหา ห.ร.ม. ของ 24 และ 36
Find the GCD of 24 and 36
จงหา ห.ร.ม. ของ 45 และ 60
Find the GCD of 45 and 60
จงหา ห.ร.ม. ของ 42, 105 และ 147
Find the GCD of 42, 105 and 147
จงหา ห.ร.ม. ของ 18, 27 และ 45
Find the GCD of 18, 27 and 45
จงหา ห.ร.ม. ของ 32, 48 และ 80
Find the GCD of 32, 48 and 80
➗ การหา ห.ร.ม. โดยการหารสั้น ➗ Finding GCD by Short Division
นำจำนวนทั้งหมดตั้ง หารสั้น โดยหา จำนวนเฉพาะที่หารทุกตัวได้ลงตัว มาหารไปเรื่อยๆ จนกว่าจะไม่มีจำนวนเฉพาะใดหารได้ลงตัวครบทุกตัวอีก จากนั้นนำ ตัวหารทั้งหมดมาคูณกัน
Set up short division. Find a prime number that divides all numbers evenly and repeat until no such prime number exists. Then, multiply all the divisors together.
จงหา ห.ร.ม. ของ 24 และ 36 โดยการหารสั้น
Find the GCD of 24 and 36 by short division.
จงหา ห.ร.ม. ของ 30, 45 และ 60
Find the GCD of 30, 45 and 60
จงหา ห.ร.ม. ของ 56, 84 และ 140
Find the GCD of 56, 84 and 140
จงหา ห.ร.ม. ของ 72 และ 108
Find the GCD of 72 and 108
จงหา ห.ร.ม. ของ 48, 72 และ 120
*หมายเหตุ: บรรทัดสุดท้าย (2, 3, 5) ไม่มีตัวหารใดที่หารลงตัวครบทั้ง 3 ตัวอีกแล้ว จึงยุติการหาร
Find the GCD of 48, 72 and 120
*Note: At the last line (2, 3, 5), there is no common divisor for all 3 numbers, so division stops.
⚙️ ขั้นตอนวิธีของยูคลิด ⚙️ Euclidean Algorithm
ใช้สำหรับหา ห.ร.ม. ของตัวเลขที่มีค่ามากๆ โดยอาศัยหลักการ ตั้งหารเอาเศษ ทำได้โดยการนำตัวเลขที่มากกว่าเป็นตัวตั้ง และนำตัวเลขที่น้อยกว่าไปหาร นำเศษที่เหลือมาเป็นตัวหารรอบต่อไป ทำสลับไปเรื่อยๆ จนกว่า เศษจะเป็น 0 ตัวหารตัวสุดท้ายจะเป็น ห.ร.ม.
Used to find the GCD of very large numbers based on division with remainder. Divide the larger number by the smaller number. Then, divide the previous divisor by the remainder. Repeat until the remainder is 0. The last non-zero divisor is the GCD.
จงหา ห.ร.ม. ของ 18 และ 48 โดยขั้นตอนวิธีของยูคลิด
เนื่องจากเศษเป็น 0 แล้ว ตัวหารตัวสุดท้ายคือ 6 ดังนั้น ห.ร.ม. = 6
Find the GCD of 18 and 48 using the Euclidean Algorithm.
Since the remainder is 0, the last divisor is 6. Therefore, GCD = 6
จงหา ห.ร.ม. ของ 105 และ 252
ดังนั้น ห.ร.ม. คือ 21
Find the GCD of 105 and 252
Therefore, the GCD is 21
จงหา ห.ร.ม. ของ 52 และ 124
ดังนั้น ห.ร.ม. คือ 4
Find the GCD of 52 and 124
Therefore, the GCD is 4
จงหา ห.ร.ม. ของ 156 และ 348
ดังนั้น ห.ร.ม. คือ 12
Find the GCD of 156 and 348
Therefore, the GCD is 12
จงหา ห.ร.ม. ของ 462 และ 1071
ดังนั้น ห.ร.ม. คือ 21
Find the GCD of 462 and 1071
Therefore, the GCD is 21
📝 โจทย์ปัญหา ห.ร.ม. 📝 Word Problems involving GCD
การประยุกつ์ใช้ ห.ร.ม. ในโจทย์ปัญหา มักจะมีคำใบ้ หรือคีย์เวิร์ดซ่อนอยู่ เช่นคำว่า "แบ่งให้เท่าๆ กัน", "มากที่สุด", "ยาวที่สุด", "ใหญ่ที่สุด" โดยที่ "ไม่เหลือเศษ" หากพบคำเหล่านี้ ให้สันนิษฐานไว้ก่อนว่าต้องใช้ ห.ร.ม. ในการหาคำตอบ
Applying GCD in word problems often involves keywords such as "divide equally", "maximum", "longest", "largest" with "no remainder". When you spot these phrases, it's highly likely a GCD problem.
มีแอปเปิล $30$ ผล และส้ม $45$ ผล ต้องการแบ่งใส่ตะกร้าให้แต่ละตะกร้ามีผลไม้ชนิดเดียวกันและจำนวนเท่าๆ กัน โดยให้มี จำนวนผลไม้ต่อตะกร้ามากที่สุด จะแบ่งได้ตะกร้าละกี่ผล?
วิธีทำ: หา ห.ร.ม. ของ 30 และ 45
ดังนั้น จะแบ่งผลไม้ได้ ตะกร้าละ 15 ผล
There are $30$ apples and $45$ oranges. We want to distribute them into baskets so that each basket has the same type and same number of fruits, with the maximum number of fruits per basket. How many fruits per basket?
Method: Find the GCD of 30 and 45.
Therefore, we can put 15 fruits per basket.
มีเชือก 3 เส้น ยาว $48$ เมตร, $72$ เมตร และ $120$ เมตร ต้องการตัดเป็นเส้นสั้นๆ ให้ยาวเท่ากันทุกเส้นและ ยาวที่สุดเท่าที่จะทำได้ โดยไม่เหลือเศษ เชือกแต่ละเส้นจะยาวกี่เมตร?
วิธีทำ: หา ห.ร.ม. ของ 48, 72, 120 (จากตัวอย่างที่ 3.5)
ดังนั้น จะตัดเชือกได้ยาวที่สุด เส้นละ 24 เมตร
There are 3 ropes measuring $48$ m, $72$ m, and $120$ m. We want to cut them into smaller equal pieces that are as long as possible with no remainders. How long will each piece be?
Method: Find the GCD of 48, 72, 120 (from Example 3.5)
Therefore, each piece will be 24 meters long.
ห้องสี่เหลี่ยมผืนผ้ากว้าง $300$ เซนติเมตร ยาว $450$ เซนติเมตร ต้องการปูกระเบื้องรูปสี่เหลี่ยมจัตุรัสให้เต็มพื้นที่พอดี โดยใช้กระเบื้องแผ่นใหญ่ที่สุด จะต้องใช้กระเบื้องขนาดเท่าใด?
วิธีทำ: ขนาดของกระเบื้องจัตุรัสที่ใหญ่ที่สุด คือ ห.ร.ม. ของความกว้างและความยาวห้อง
ดังนั้น จะต้องใช้กระเบื้องขนาด $150 \times 150$ เซนติเมตร
A rectangular room is $300$ cm wide and $450$ cm long. We want to tile the floor perfectly using the largest possible square tiles. What should be the dimension of the tiles?
Method: The dimension of the largest square tile is the GCD of the width and length.
Therefore, the tiles should be $150 \times 150$ cm.
สนามหญ้ารูปสี่เหลี่ยมผืนผ้ากว้าง $120$ เมตร ยาว $160$ เมตร ต้องการปลูกต้นไม้รอบสนามให้มีระยะห่างระหว่างต้นเท่าๆ กัน และ ห่างกันมากที่สุด โดยให้มีต้นไม้อยู่ที่มุมทั้งสี่พอดี ระยะห่างระหว่างต้นไม้คือเท่าใด?
วิธีทำ: หาระยะห่างที่มากที่สุดจาก ห.ร.ม. ของ 120 และ 160
ดังนั้น ระยะห่างระหว่างต้นไม้คือ 40 เมตร
A rectangular field is $120$ m wide and $160$ m long. Trees are to be planted around the perimeter at equal maximum distances apart, with a tree at each of the four corners. What is the distance between the trees?
Method: Find the maximum distance using the GCD of 120 and 160.
Therefore, the distance between the trees is 40 meters.
นักเรียน 3 กลุ่ม มีจำนวน $42$ คน, $63$ คน และ $84$ คน ต้องการจัดนักเรียนเป็นแถว แถวละเท่าๆ กัน โดยไม่ให้แต่ละกลุ่มปะปนกัน และต้องการให้ได้ จำนวนนักเรียนต่อแถวมากที่สุด จะจัดได้แถวละกี่คน?
วิธีทำ: หา ห.ร.ม. ของ 42, 63 และ 84
ดังนั้น จะจัดนักเรียนได้ แถวละ 21 คน
Three groups of students have $42$, $63$, and $84$ people respectively. We want to arrange them into rows of equal length without mixing the groups, and we want the maximum number of students per row. How many students will be in each row?
Method: Find the GCD of 42, 63, and 84.
Therefore, we can arrange them into rows of 21 students.
คำศัพท์ที่น่าสนใจ Key Vocabulary
คำศัพท์คณิตศาสตร์ภาษาอังกฤษ พร้อมรากศัพท์
| คำศัพท์ | รากศัพท์ / Root | ความหมาย / Meaning |
|---|---|---|
| Greatest Common Divisor (GCD) | greatest + communis + dividere | ตัวหารร่วมมาก (ห.ร.ม.) · จำนวนเต็มบวกที่มีค่ามากที่สุดที่สามารถหารจำนวนต่างๆ เหล่านั้นได้ลงตัว |
| Divisor | dividere (to divide) | ตัวหาร · ตัวเลขที่นำไปหารจำนวนอื่น |
| Factor | facere (to do, to make) | ตัวประกอบ · จำนวนเต็มที่หารจำนวนเต็มอีกจำนวนหนึ่งได้ลงตัว |
| Prime Number | primus (first) | จำนวนเฉพาะ · จำนวนที่มีตัวประกอบเพียงสองตัว คือ 1 และตัวมันเอง |
| Algorithm | Al-Khwarizmi (Persian mathematician) | อัลกอริทึม / ขั้นตอนวิธี · กระบวนการแก้ปัญหาที่สามารถอธิบายออกมาเป็นขั้นตอนที่ชัดเจน |