ขั้นตอนวิธีเกี่ยวกับการหาร (Division Algorithm) เป็นทฤษฎีบทพื้นฐานที่สำคัญในทฤษฎีจำนวน ซึ่งรับประกันว่าเมื่อเรานำจำนวนเต็มใดๆ มาหารด้วยจำนวนเต็มอีกจำนวนหนึ่ง (ที่ไม่ใช่ศูนย์) เราจะได้ผลลัพธ์เป็น "ผลหาร" (Quotient) และ "เศษเหลือ" (Remainder) ที่มีเพียงรูปแบบเดียวเสมอ และเศษเหลือจะต้องไม่ติดลบ
The Division Algorithm is a fundamental theorem in number theory. It guarantees that when we divide any integer by another non-zero integer, we obtain a unique "quotient" and "remainder", where the remainder must always be non-negative.
📖 ทฤษฎีบท / The Theorem
สำหรับจำนวนเต็ม $a$ และ $b$ โดยที่ $b \neq 0$ จะมีจำนวนเต็ม $q$ และ $r$ เพียงชุดเดียว ที่ทำให้สมการต่อไปนี้เป็นจริง:
โดยมีเงื่อนไขบังคับคือ: $\quad 0 \leq r < |b|$
- $a$ เรียกว่า ตัวตั้ง (Dividend)
- $b$ เรียกว่า ตัวหาร (Divisor)
- $q$ เรียกว่า ผลหาร (Quotient)
- $r$ เรียกว่า เศษเหลือ (Remainder) (*สังเกตว่าเศษเหลือต้อง $\ge 0$ เสมอ)
For any integers $a$ and $b$ with $b \neq 0$, there exist unique integers $q$ and $r$ such that:
subject to the condition: $\quad 0 \leq r < |b|$
- $a$ is the Dividend
- $b$ is the Divisor
- $q$ is the Quotient
- $r$ is the Remainder (*Note that remainder is always $\ge 0$)
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อตัวตั้ง $a = 23$ และตัวหาร $b = 5$
$\text{ดังนั้น } q = 4 \text{ และ } r = 3$
Find the quotient $q$ and remainder $r$ given $a = 23$ and $b = 5$.
$\text{Thus, } q = 4 \text{ and } r = 3$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = 42$ และ $b = 7$
$\text{ดังนั้น } q = 6 \text{ และ } r = 0 \quad \text{(แสดงว่า } 7 \text{ หาร } 42 \text{ ลงตัว)}$
Find the quotient $q$ and remainder $r$ given $a = 42$ and $b = 7$.
$\text{Thus, } q = 6 \text{ and } r = 0 \quad \text{(This means } 7 \text{ divides } 42 \text{ evenly)}$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = 3$ และ $b = 8$
$\text{ดังนั้น } q = 0 \text{ และ } r = 3$
Find the quotient $q$ and remainder $r$ given $a = 3$ and $b = 8$.
$\text{Thus, } q = 0 \text{ and } r = 3$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = -23$ และ $b = 5$
** ข้อควรระวัง **
หลายคนมักคิดว่า $-23 = 5(-4) - 3$ ได้ $q=-4, r=-3$ (ผิด!)
เพราะเงื่อนไขคือเศษเหลือต้องไม่ติดลบ ($0 \le r < 5$)
วิธีที่ถูกต้อง คือต้องถอยผลหารให้ติดลบมากขึ้น เพื่อให้เศษที่บวกเพิ่มเป็นค่าบวก:
$\text{ดังนั้น } q = -5 \text{ และ } r = 2$
Find the quotient $q$ and remainder $r$ given $a = -23$ and $b = 5$.
** Common Mistake **
Writing $-23 = 5(-4) - 3$ giving $q=-4, r=-3$. (Wrong!)
Because the remainder must be non-negative ($0 \le r < 5$).
Correct method: push the quotient further negative so the remainder added is positive:
$\text{Thus, } q = -5 \text{ and } r = 2$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = 23$ และ $b = -5$
เงื่อนไขของเศษคือ $0 \le r < |-5|$ หรือ $0 \le r < 5$
$\text{ดังนั้น } q = -4 \text{ และ } r = 3$
Find the quotient $q$ and remainder $r$ given $a = 23$ and $b = -5$.
The condition for remainder is $0 \le r < |-5|$ or $0 \le r < 5$.
$\text{Thus, } q = -4 \text{ and } r = 3$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = -23$ และ $b = -5$
เงื่อนไขของเศษคือ $0 \le r < 5$ (เศษต้องเป็นบวกเสมอ!)
$\text{ดังนั้น } q = 5 \text{ และ } r = 2$
Find the quotient $q$ and remainder $r$ given $a = -23$ and $b = -5$.
The condition is $0 \le r < 5$ (Remainder must be positive!).
$\text{Thus, } q = 5 \text{ and } r = 2$
จงหาผลหาร $q$ และเศษเหลือ $r$ เมื่อ $a = 0$ และ $b = 11$
$\text{ดังนั้น } q = 0 \text{ และ } r = 0 \quad \text{(จำนวนเต็มใดๆ ย่อมหาร 0 ลงตัวเสมอ)}$
Find the quotient $q$ and remainder $r$ given $a = 0$ and $b = 11$.
$\text{Thus, } q = 0 \text{ and } r = 0 \quad \text{(Any non-zero integer divides 0 evenly)}$
คำศัพท์ที่น่าสนใจ / Key Vocabulary
คำศัพท์คณิตศาสตร์ภาษาอังกฤษ พร้อมรากศัพท์
| คำศัพท์ | รากศัพท์ / Root | ความหมาย / Meaning |
|---|---|---|
| Algorithm | Algoritmi (Latinized name of Al-Khwarizmi) | ขั้นตอนวิธี · ลำดับขั้นตอนการคำนวณหรือการแก้ปัญหาที่ชัดเจนและมีที่สิ้นสุด |
| Dividend | dividendum (thing to be divided) | ตัวตั้ง · จำนวนที่ถูกนำมาแบ่งหรือหารออกในสมการการหาร ($a$) |
| Divisor | divisor (one who divides) | ตัวหาร · จำนวนที่นำไปหารตัวตั้ง ($b$) |
| Quotient | quotiens (how many times) | ผลหาร · จำนวนครั้งทั้งหมดที่ตัวหารสามารถแบ่งออกจากตัวตั้งได้เต็มส่วน ($q$) |
| Remainder | remanere (to remain behind) | เศษเหลือ · ส่วนที่เหลือจากการหารที่ไม่สามารถแบ่งเป็นจำนวนเต็มได้อีก ($r$) |
| Integer | integer (whole, intact) | จำนวนเต็ม · จำนวนที่ไม่มีเศษส่วนหรือทศนิยมประกอบ (บวก ลบ หรือศูนย์) |