✦ VidyaVerseOpen in the book reader

Home › Books › Primary School Mathematics

Chapter 28: Properties of Integers

Primary School Mathematics · PART III — Integers & Rational Numbers · by GS Shashidhara

Read in the book reader – search and larger text

PART III — INTEGERS & RATIONAL NUMBERS

Divisibility Rules, GCD, LCM, Euclidean Algorithm, and Linear Diophantine

Equations

LEARNING OBJECTIVES

1. Apply divisibility rules for 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 13 to integers.

2. Understand GCD (Greatest Common Divisor) and find it using prime factorisation.

3. Apply the Euclidean Algorithm to find GCD of large integers efficiently.

4. Understand LCM (Least Common Multiple) for integers and its relation to GCD.

5. Use GCD×LCM = |a|×|b| to solve problems.

6. Prove and apply Bézout's Identity: GCD(a,b) = ma + nb for some integers m, n.

7. Solve linear Diophantine equations ax + by = c.

8. Apply properties of integers to real-life problems: scheduling, tiling, and resource sharing.

9. Understand the Division Algorithm: a = qb + r.

10. Solve olympiad-level problems involving GCD, LCM, and number theory.

28.1 Divisibility and Divisibility Rules

An integer a is DIVISIBLE by integer b (written b|a) if a = b×k for some integer k. In other words, a ÷ b leaves NO remainder.

DIVISIBILITY

DIVISIBILITY NOTATION:

b | a means "b divides a" (b is a factor of a).

b a means "b does not divide a."∤

EXAMPLES:

7 | 49 (49 = 7×7). 3 | 12 (12 = 3×4). 5 | (−35) (−35 = 5×(−7)).

4 15 (15 ÷ 4 = 3 remainder 3).∤

DIVISIBILITY WITH NEGATIVE INTEGERS:

If b | a then (−b) | a and b | (−a) and (−b) | (−a).

3 | 12, (−3) | 12, 3 | (−12), (−3) | (−12). All true.

Convention: when we say "divisors," we usually mean positive divisors.

PROPERTIES OF DIVISIBILITY:

1. If a|b and b|c, then a|c. (Transitivity)

2. If a|b and a|c, then a|(b+c) and a|(b−c). (Linear combinations)

3. If a|b, then a|(bk) for any integer k. (Scaling)

4. a|0 for every non-zero integer a. (Zero is divisible by everything)

5. 1|a for every integer a. (1 divides everything)

6. a|a for every non-zero integer a. (Every integer divides itself)

Complete Divisibility Rules

DivisRuleExample: 5,765,432,891
or
2Last digit is even (0,2,4,6,8)Last digit: 1. NOT divisible by 2.
3Sum of all digits divisible by 35+7+6+5+4+3+2+8+9+1=50. 50÷3=16 r2.

NOT div by 3.

4Last TWO digits form a number divisible by 4Last two: 91. 91÷4=22 r3. NOT div by 4.
5Last digit is 0 or 5Last digit: 1. NOT div by 5.
6Divisible by both 2 AND 3Not div by 2, so not div by 6.
7Double last digit, subtract from rest; repeatComplex rule — see example below.
8Last THREE digits divisible by 8Last three: 891. 891÷8=111 r3. NOT div

by 8.

9Sum of digits divisible by 9Digit sum=50. 50 not div by 9. NOT div

by 9.

10Last digit is 0Last digit: 1. NOT div by 10.

11 Alternating sum: odd pos − even pos digits; result div (5−7+6−5+4−3+2−8+9−1)=(5+6+4+2+9)

by 11−(7+5+3+8+1)=26−24=2. NOT div by 11.
12Divisible by both 3 AND 4Need both; check each separately.
13Complex; or check directly—

DIVISIBILITY BY 7 — Step-by-Step Example: Is 1,869 divisible by 7?

Step 1: Take the last digit: 9. Double it: 18.

Step 2: Subtract from rest of number: 186 − 18 = 168.

Step 3: Repeat: last digit of 168 is 8. Double: 16. Rest: 16 − 16 = 0.

Step 4: 0 is divisible by 7.

ANSWER: 1,869 IS divisible by 7. Verify: 1869 ÷ 7 = 267. ✓

28.2 The Division Algorithm

The Division Algorithm is the foundation of all divisibility theory. It formalises long division.

THE DIVISION ALGORITHM

DIVISION ALGORITHM:

For any integer a and positive integer b, there exist UNIQUE integers q and r such that: a = q×b + r, where 0 ≤ r < b.

a = dividend. b = divisor. q = quotient. r = remainder.

EXAMPLES:

17 ÷ 5: 17 = 3×5 + 2. q=3, r=2.

−17 ÷ 5: −17 = (−4)×5 + 3. q=−4, r=3. [NOT q=−3, r=−2!]

Because: (−4)×5+3 = −20+3 = −17. And 0 ≤ 3 < 5. ✓

Note: r is always NON-NEGATIVE (0 ≤ r < b).

MODULAR NOTATION:

a ≡ r (mod b) means a and r have the same remainder when divided by b.

17 ≡ 2 (mod 5). −17 ≡ 3 (mod 5).

DIVISIBILITY IN TERMS OF THE ALGORITHM:

b | a if and only if r = 0 in a = qb + r.

i.e., b | a ⇔ a ≡ 0 (mod b).

APPLICATION: Finding remainder of large numbers.

Remainder when 2^{10} is divided by 7:

2^1=2, 2^2=4, 2^3=8≡1, 2^4≡2, ... cycle of period 3 (mod 7).

10 = 3×3+1. 2^{10} ≡ 2^1 = 2 (mod 7). Remainder = 2.

28.3 Greatest Common Divisor (GCD)

The GCD of two integers is the largest positive integer that divides both of them. Also called HCF (Highest Common Factor).

GCD — GREATEST COMMON DIVISOR

GCD(a, b) = the largest positive integer d such that d|a and d|b.

NOTATION: GCD(a,b) = gcd(a,b) = HCF(a,b).

GCD(12, 18) = 6. GCD(35, 49) = 7. GCD(17, 31) = 1.

GCD WITH NEGATIVE INTEGERS:

GCD(a,b) = GCD(|a|,|b|). Signs are ignored for GCD.

GCD(−12, 18) = GCD(12, 18) = 6.

SPECIAL CASES:

GCD(a, 0) = |a| for any a ≠ 0. (Everything divides 0.)

GCD(a, a) = |a|.

GCD(1, a) = 1 for any a.

METHOD 1: Prime Factorisation.

Find prime factors of each. GCD = product of COMMON prime factors (lowest powers).

GCD(72, 120):

72 = 2^3 × 3^2. 120 = 2^3 × 3 × 5.

Common: 2^3 × 3^1 = 8×3 = 24.

GCD(72, 120) = 24.

COPRIME / RELATIVELY PRIME:

If GCD(a,b) = 1, then a and b are COPRIME (have no common factor > 1).

GCD(8, 15) = 1: 8 and 15 are coprime.

28.4 The Euclidean Algorithm

The Euclidean Algorithm is an ancient, efficient method to find GCD without full prime factorisation. It works by repeatedly applying the Division Algorithm.

THE EUCLIDEAN ALGORITHM

EUCLIDEAN ALGORITHM:

GCD(a, b) = GCD(b, a mod b) = GCD(b, r)

where a = qb + r.

REPEAT until remainder = 0.

GCD = the LAST NON-ZERO REMAINDER.

WHY IT WORKS:

If d|a and d|b, then d|(a−qb)=r. So d|r.

Conversely, if d|b and d|r, then d|(qb+r)=a.

So the set of common divisors of (a,b) = set of common divisors of (b,r). Hence GCD(a,b) = GCD(b,r). This is the key invariant!

SPEED: At most 5×(number of digits of the smaller number) steps. Far faster than prime factorisation for large numbers.

HISTORY: This is the oldest known non-trivial algorithm,

described by Euclid in "Elements" (~300 BC).

The equivalent algorithm appears in Aryabhata's "Aryabhatiya" (499 AD)! Aryabhata called it "Kuttaka" (क क) — the pulveriser.

EXAMPLE: Find GCD(252, 105) using the Euclidean Algorithm

Step 1: 252 = 2 × 105 + 42. GCD(252,105) = GCD(105, 42).

Step 2: 105 = 2 × 42 + 21. GCD(105, 42) = GCD(42, 21).

Step 3: 42 = 2 × 21 + 0. GCD(42, 21) = GCD(21, 0) = 21.

GCD(252, 105) = 21.

Verify: 252 = 21×12. 105 = 21×5. Both divisible by 21. ✓

EXAMPLE: Find GCD(1,071, 1,029) using the Euclidean Algorithm

Step 1: 1071 = 1 × 1029 + 42. GCD(1071,1029) = GCD(1029, 42).

Step 2: 1029 = 24 × 42 + 21. GCD(1029, 42) = GCD(42, 21).

Step 3: 42 = 2 × 21 + 0. GCD(42, 21) = 21.

GCD(1071, 1029) = 21.

Verify: 1071/21=51. 1029/21=49. Both exact. ✓

28.5 Least Common Multiple (LCM) for Integers

The LCM of two integers is the smallest POSITIVE integer that is divisible by both. The key connection: LCM×GCD = product of absolute values.

LCM AND THE GCD×LCM FORMULA

LCM(a, b) = the smallest positive integer divisible by both |a| and |b|.

THE GOLDEN FORMULA: LCM(a, b) × GCD(a, b) = |a| × |b|.

So: LCM(a, b) = |a| × |b| / GCD(a, b).

WHY THE FORMULA WORKS:

Let d = GCD(a,b). Write a = d×m and b = d×n where GCD(m,n)=1.

LCM(a,b) = d×m×n = a×n = b×m.

GCD×LCM = d × dmn = d^2×mn = (dm)(dn) = |a|×|b|. ✓

EXAMPLES:

GCD(12, 18) = 6. LCM(12, 18) = 12×18/6 = 216/6 = 36.

Verify: 36 = 12×3 = 18×2. Both exact. ✓

GCD(25, 35) = 5. LCM = 25×35/5 = 175.

Verify: 175 = 25×7 = 35×5. ✓

LCM OF THREE NUMBERS:

LCM(a, b, c) = LCM(LCM(a, b), c).

LCM(4, 6, 10):

LCM(4, 6) = 4×6/GCD(4,6) = 24/2 = 12.

LCM(12, 10) = 12×10/GCD(12,10) = 120/2 = 60.

LCM(4, 6, 10) = 60.

28.6 Bézout's Identity

Bézout's Identity is one of the most important theorems in number theory. It says that the GCD of two integers can always be expressed as a LINEAR COMBINATION of those integers.

BÉZOUT'S IDENTITY

BÉZOUT'S IDENTITY:

For any integers a and b (not both zero), there exist integers m and n such that:

GCD(a, b) = m×a + n×b.

m and n are called Bézout coefficients.

HOW TO FIND m AND n (Extended Euclidean Algorithm):

Work BACKWARDS through the Euclidean Algorithm steps.

EXAMPLE: Find GCD(252, 105) and express as 252m + 105n.

From earlier:

252 = 2×105 + 42 42 = 252 − 2×105⇒

105 = 2×42 + 21 21 = 105 − 2×42⇒

42 = 2×21 + 0

Back-substitute:

21 = 105 − 2×42

= 105 − 2×(252 − 2×105)

= 105 − 2×252 + 4×105

= 5×105 − 2×252.

So: 21 = (−2)×252 + 5×105.

m = −2, n = 5. GCD(252,105) = 21 = −2×252 + 5×105.

VERIFY: −2×252+5×105 = −504+525 = 21. ✓

INFINITELY MANY SOLUTIONS: If (m₀, n₀) is one solution to GCD=ma+nb,

then (m₀+kb/d, n₀−ka/d) is also a solution for every integer k.

28.7 Linear Diophantine Equations: ax + by = c

A linear Diophantine equation seeks INTEGER solutions to ax + by = c. Solutions exist if and only if GCD(a,b) divides c.

LINEAR DIOPHANTINE EQUATIONS

THEOREM: ax + by = c has integer solutions ⇔ GCD(a,b) | c.

IF SOLUTIONS EXIST:

Step 1: Find GCD(a,b) = d using Euclidean Algorithm.

Step 2: Find Bézout coefficients: d = m×a + n×b.

Step 3: Multiply: c = (c/d)×d = (c/d)×m×a + (c/d)×n×b.

So one solution is: x₀ = m×(c/d), y₀ = n×(c/d).

GENERAL SOLUTION (all integer solutions):

x = x₀ + (b/d)×t, y = y₀ − (a/d)×t, for any integer t.

EXAMPLE: Solve 21x + 15y = 9.

GCD(21,15) = 3. Does 3|9? Yes (9=3×3). Solutions exist.

Divide by 3: 7x + 5y = 3.

Find GCD(7,5)=1: 7=1×5+2; 5=2×2+1.

Back-sub: 1=5−2×2=5−2×(7−5)=3×5−2×7.

So 1 = (−2)×7 + 3×5. Multiply by 3: 3 = (−6)×7 + 9×5.

One solution to 7x+5y=3: x₀=−6, y₀=9.

General solution: x = −6+5t, y = 9−7t.

t=0: (−6,9). t=1: (−1,2). t=2: (4,−5). t=−1: (−11,16).

VERIFY t=1: 21×(−1)+15×2 = −21+30 = 9. ✓

⚠ Common Mistake: ax+by=c has integer solutions ONLY if GCD(a,b) divides c. If GCD(a,b)

does NOT divide c (e.g., 6x+4y=5: GCD=2, 2 5), then NO integer solutions exist regardless of how ≃ hard you try.

28.8 Real-Life Applications of GCD and LCM

ApplicationUsesMethodExample
Tiling a floorLargest square tile GCD of dimensions Floor 480×336 cm: GCD=48 cm tile

that fits without

cutting

Synchronized events When do two events LCM of periodsBuses every 12 and 18 min: LCM=36
next occurmin

simultaneously

ApplicationUsesMethodExample
Sharing fairlyLargest group size GCD of item counts156 boys, 104 girls: GCD=52

for equal distribution

Cutting ropeMaximum equalGCD of lengths45 m and 75 m rope: GCD=15 m

pieces from multiple

ropes

Fractions (LCD)Adding/subtractingLCM of1/12+1/18: LCM=36
fractionsdenominators
Planetary alignment When do planetsLCM of orbital Jupiter(12yr) Saturn(30yr): LCM=60yr
realign at sameperiods

position

Pack evenlyNumber of identical GCD of quantitiesPens(144) pencils(108): GCD=36

packages from

mixed items

CryptographyRSA encryption uses Extended GCDInternet security basis

large coprime

integers

WORKED EXAMPLES

Section A: Easy Problems — Foundation Level (Classes 7–8)

Problem 1: Apply divisibility rules to test whether 7,623,840 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, 11.

✔ Solution

Number: 7,623,840.

Divisible by 2: Last digit = 0 (even). YES.

Divisible by 3: Digit sum = 7+6+2+3+8+4+0 = 30. 30÷3=10. YES.

Divisible by 4: Last two digits = 40. 40÷4=10. YES.

Divisible by 5: Last digit = 0. YES.

Divisible by 6: Div by 2 (YES) AND by 3 (YES). YES.

Divisible by 8: Last three digits = 840. 840÷8=105. YES.

Divisible by 9: Digit sum = 30. 30÷9=3 r3. NOT 9.

Divisible by 10: Last digit = 0. YES.

Divisible by 11: Alternating sum = (7−6+2−3+8−4+0) = (7+2+8+0)−(6+3+4) = 17−13 = 4. 4 not div by 11. NOT 11.

SUMMARY: Divisible by 2, 3, 4, 5, 6, 8, 10. NOT divisible by 9 or 11.

Verify 8: 7623840/8=952980. ✓

Problem 2: Find GCD(504, 336) using (a) prime factorisation, (b) Euclidean Algorithm. Verify GCD×LCM = product.

✔ Solution

(a) PRIME FACTORISATION:

504 = 2^3 × 3^2 × 7.

336 = 2^4 × 3 × 7.

Common factors: 2^3 × 3^1 × 7^1 = 8×3×7 = 168.

GCD(504, 336) = 168.

(b) EUCLIDEAN ALGORITHM:

504 = 1×336 + 168. GCD(504,336) = GCD(336,168).

336 = 2×168 + 0. GCD(336,168) = 168.

GCD(504, 336) = 168. (Same answer.)✓

LCM:

LCM = 504×336 / 168 = 169344 / 168 = 1,008.

Verify: 1008/504=2 (exact). 1008/336=3 (exact). ✓

VERIFY GCD×LCM = product:

168 × 1,008 = 169,344 = 504 × 336. ✓

ANSWERS: GCD = 168. LCM = 1,008.

Problem 3: Three bells ring at intervals of 24, 36, and 48 minutes. They all ring together at 8:00 AM. When will they next all ring together? How many times does each bell ring individually between 8 AM and the next simultaneous ring?

✔ Solution

Next simultaneous ring = LCM(24, 36, 48) minutes after 8 AM.

LCM(24, 36):

GCD(24,36)=12. LCM=24×36/12=72.

LCM(72, 48):

GCD(72,48): 72=1×48+24; 48=2×24+0. GCD=24.

LCM=72×48/24=144.

LCM(24, 36, 48) = 144 minutes = 2 hours 24 minutes.

Next simultaneous ring: 8:00 AM + 2h 24min = 10:24 AM.

Individual rings between 8 AM and 10:24 AM (exclusive of start):

Bell 1 (24 min): 144/24 = 6 times. (at 8:24, 8:48, 9:12, 9:36, 10:00, 10:24)

Bell 2 (36 min): 144/36 = 4 times. (at 8:36, 9:12, 9:48, 10:24)

Bell 3 (48 min): 144/48 = 3 times. (at 8:48, 9:36, 10:24)

ANSWER: Next simultaneous ring at 10:24 AM.

Bell 1: 6 rings; Bell 2: 4 rings; Bell 3: 3 rings (including the simultaneous one).

Problem 4: A floor is 480 cm × 336 cm. Find the largest square tile that fits exactly (no cutting). How many tiles are needed? What is the total cost if each tile costs Rs.45?

✔ Solution

Largest square tile = GCD(480, 336).

EUCLIDEAN ALGORITHM:

480 = 1×336 + 144. GCD(480,336) = GCD(336,144).

336 = 2×144 + 48. GCD(336,144) = GCD(144,48).

144 = 3×48 + 0. GCD(144,48) = 48.

GCD(480, 336) = 48 cm.

Tile size: 48 cm × 48 cm.

Number of tiles along length: 480/48 = 10.

Number of tiles along width: 336/48 = 7.

Total tiles = 10 × 7 = 70 tiles.

Total cost = 70 × Rs.45 = Rs.3,150.

VERIFY: Area of floor = 480×336 = 161,280 cm².

Area of one tile = 48×48 = 2,304 cm².

Tiles needed = 161,280/2,304 = 70. ✓

ANSWER: Tile size = 48 cm. Tiles needed = 70. Total cost = Rs.3,150.

Problem 5: Express GCD(126, 91) as a linear combination 126m + 91n. Find Bézout coefficients.

✔ Solution

STEP 1: EUCLIDEAN ALGORITHM.

126 = 1×91 + 35. 35 = 126 − 1×91.⇒

91 = 2×35 + 21. 21 = 91 − 2×35.⇒

35 = 1×21 + 14. 14 = 35 − 1×21.⇒

21 = 1×14 + 7. 7 = 21 − 1×14.⇒

14 = 2×7 + 0.

GCD(126, 91) = 7.

STEP 2: BACK-SUBSTITUTION.

7 = 21 − 1×14

= 21 − 1×(35 − 1×21) = 2×21 − 1×35

= 2×(91 − 2×35) − 1×35 = 2×91 − 5×35

= 2×91 − 5×(126 − 1×91) = 7×91 − 5×126.

7 = (−5)×126 + 7×91.

m = −5, n = 7.

VERIFY: (−5)×126 + 7×91 = −630 + 637 = 7. ✓

ANSWER: GCD(126, 91) = 7 = (−5)×126 + 7×91.

Problem 6: Solve the linear Diophantine equation 14x + 21y = 35. Find the general solution and three specific integer solutions.

✔ Solution

GCD(14, 21) = 7. Does 7|35? Yes (35 = 7×5). Solutions EXIST.

Divide by 7: 2x + 3y = 5.

Find one solution to 2x + 3y = 5:

By inspection or Euclidean: GCD(2,3)=1.

2×(−1)+3×1=1. Multiply by 5: 2×(−5)+3×5=5.

x₀ = −5, y₀ = 5.

Verify: 2×(−5)+3×5=−10+15=5. ✓

General solution to 2x+3y=5:

x = −5 + 3t, y = 5 − 2t, for any integer t.

Back to original (14x+21y=35): same x and y since we divided by 7.

x = −5+3t, y = 5−2t.

Verify in original: 14(−5+3t)+21(5−2t)=−70+42t+105−42t=35. ✓

THREE SPECIFIC SOLUTIONS:

t=0: (x,y)=(−5, 5). Check: 14×(−5)+21×5=−70+105=35. ✓

t=1: (x,y)=(−2, 3). Check: 14×(−2)+21×3=−28+63=35. ✓

t=2: (x,y)=(1, 1). Check: 14×1+21×1=14+21=35. ✓

t=3: (x,y)=(4, −1). Check: 14×4+21×(−1)=56−21=35. ✓

ANSWER: General solution: x=−5+3t, y=5−2t. Three solutions: (−5,5), (−2,3), (1,1).

Section B: Medium Problems — CBSE/NCERT Standard (Classes 7–8)

Problem 7: Prove: GCD(a, b) = GCD(a, b + ka) for any integer k. This shows the Euclidean Algorithm is valid.

✔ Solution

CLAIM: GCD(a, b) = GCD(a, b + ka) for any integer k.

PROOF:

Let d = GCD(a, b). Then d|a and d|b.

Show d | (b+ka):

Since d|b and d|a: d|(b+ka) (linear combination). So d is a common divisor of a and (b+ka). Show any common divisor of a and (b+ka) divides d:

Let e | a and e | (b+ka). Then e | [(b+ka) − ka] = b.

So e | a and e | b. Hence e | GCD(a,b) = d.

Therefore: the sets of common divisors of (a, b) and (a, b+ka) are the same.

Hence their greatest common divisors are equal: GCD(a,b) = GCD(a, b+ka). QED.

APPLICATION: In the Euclidean Algorithm, when we compute a = qb + r:

r = a − qb = a + (−q)b, i.e., b+ka form with a replaced by b.

So GCD(a,b) = GCD(b, r). This validates each step! ✓

NUMERICAL EXAMPLE: GCD(18, 48) = GCD(18, 48+2×18) = GCD(18, 84).

GCD(18,48): 48=2×18+12; 18=1×12+6; 12=2×6+0. GCD=6.

GCD(18,84): 84=4×18+12; 18=1×12+6; 12=2×6+0. GCD=6. ✓

Problem 8: Find all integer pairs (x, y) satisfying 35x − 22y = 1. What is the minimum positive value of x?

✔ Solution

GCD(35, 22): 35=1×22+13; 22=1×13+9; 13=1×9+4; 9=2×4+1; 4=4×1+0.

GCD(35, 22) = 1. Since 1|1: solutions EXIST.

BACK-SUBSTITUTION:

1 = 9 − 2×4

= 9 − 2×(13 − 1×9) = 3×9 − 2×13

= 3×(22−13) − 2×13 = 3×22 − 5×13

= 3×22 − 5×(35−22) = 8×22 − 5×35.

So 35 × (−5) + 22 × 8 = 1, which is 35x − 22y = 1 with x = −5, y = −8.

CHECK: 35×(−5)−22×(−8) = −175+176 = 1. ✓

General solution: x = −5+22t, y = −8+35t.

MINIMUM POSITIVE x: −5+22t > 0 t > 5/22. Minimum integer t=1.⇒

x = −5+22 = 17. y = −8+35 = 27.

CHECK: 35×17−22×27 = 595−594 = 1. ✓

ANSWER: General solution: x=−5+22t, y=−8+35t. Minimum positive x=17 (with y=27).

Problem 9: Three types of mangoes: 156 Alphonso, 104 Kesar, 78 Totapuri. Divide into identical groups where each group has the same number of each type. Find the maximum number of groups and mangoes per group of each type.

✔ Solution

Maximum groups = GCD(156, 104, 78).

GCD(156, 104):

156 = 1×104 + 52. GCD(156,104) = GCD(104,52).

104 = 2×52 + 0. GCD = 52.

GCD(52, 78):

78 = 1×52 + 26. GCD(78,52) = GCD(52,26).

52 = 2×26 + 0. GCD = 26.

GCD(156, 104, 78) = GCD(GCD(156,104), 78) = GCD(52, 78) = 26.

Maximum groups = 26.

Per group:

Alphonso: 156/26 = 6.

Kesar: 104/26 = 4.

Totapuri: 78/26 = 3.

VERIFY: 26×6=156 ; 26×4=104 ; 26×3=78 .✓✓✓

Total mangoes per group: 6+4+3=13 mangoes per group.

26 groups × 13 mangoes = 338 total mangoes.

156+104+78=338 .✓

ANSWER: Maximum 26 groups. Each group: 6 Alphonso, 4 Kesar, 3 Totapuri.

Problem 10: Prove: If GCD(a, b) = d, then GCD(a/d, b/d) = 1 (i.e., a/d and b/d are coprime). Use this to simplify GCD(180, 252).

✔ Solution

PROOF: Let d=GCD(a,b). Write a=dm and b=dn.

We need to show GCD(m,n)=1.

Suppose e|m and e|n. Then e|(dm)=a and e|(dn)=b.

So e is a common divisor of a and b.

Since GCD(a,b)=d: e|d.

Also: m=a/d and n=b/d are integers with e|m and e|n.

But then ed|a and ed|b (since e|m means a=dm=d×(ek)=dek for some k).

So ed is a common divisor of a and b, hence ed|d.

This means e|1, so e=±1. Thus GCD(m,n)=1. QED.

APPLICATION TO GCD(180, 252):

Find GCD(180, 252) first:

252 = 1×180 + 72. GCD = GCD(180, 72).

180 = 2×72 + 36. GCD = GCD(72, 36).

72 = 2×36 + 0. GCD = 36.

GCD(180, 252) = 36.

Simplified: a/d = 180/36 = 5. b/d = 252/36 = 7.

GCD(5, 7) = 1. (5 and 7 are coprime.) ✓

So 180/252 in lowest terms = 5/7.

ANSWER: Proved. GCD(180,252)=36. Simplified fraction: 180/252=5/7.

Problem 11: A shopkeeper has Rs.6,435 to buy notebooks (Rs.45 each) and pens (Rs.30 each). Find all ways she can spend EXACTLY Rs.6,435 using integer solutions to 45x + 30y = 6435.

✔ Solution

GCD(45, 30) = 15. Does 15|6435? 6435/15 = 429. YES.

Divide by 15: 3x + 2y = 429.

Find one solution: GCD(3,2)=1. 3×1+2×(−1)=1.

Multiply by 429: 3×429+2×(−429)=429.

x₀=429, y₀=−429.

General solution: x=429+2t, y=−429−3t.

CONSTRAINTS (x≥0 notebooks, y≥0 pens):

x=429+2t≥0: t≥−214.5, so t≥−214.

y=−429−3t≥0: −3t≥429, t≤−143.

So −214 ≤ t ≤ −143, which gives −143 − (−214) + 1 = 72 values.

Three representative solutions:

t=−143: x=429+2×(−143)=429−286=143 notebooks. y=−429−3×(−143)=0 pens.

Check: 45×143+30×0=6435+0=6435. ✓

t=−214: x=429+2×(−214)=429−428=1 notebook. y=−429−3×(−214)=−429+642=213 pens. Check: 45×1+30×213=45+6390=6435. ✓

t=−178: x=429+2×(−178)=73. y=−429−3×(−178)=105.

Check: 45×73+30×105=3285+3150=6435. ✓

ANSWER: 72 different ways. Examples: (143 notebooks, 0 pens), (1 notebook, 213 pens), (73 notebooks, 105 pens).

Problem 12: Prove: LCM(a, b) × GCD(a, b) = |a × b| for positive integers a and b.

✔ Solution

PROOF:

Let d = GCD(a, b). Write a = dm and b = dn where GCD(m, n) = 1.

(From Problem 10: a/d and b/d are coprime.)

We claim: LCM(a, b) = d×m×n = a×n = b×m.

(i) dmn is divisible by a (=dm): dmn/dm = n. Yes, integer. ✓

(ii) dmn is divisible by b (=dn): dmn/dn = m. Yes, integer. ✓

So dmn is a COMMON MULTIPLE of a and b.

(iii) Smallest: Suppose L is any common multiple. L = a×k = dm×k.

Also L = b×j = dn×j. So mk = nj. Since GCD(m,n)=1: m|j and n|k.

So j = mp for some integer p. L = dn×mp = dmnp.

Minimum positive L: p=1, L = dmn.

Hence LCM(a,b) = dmn. ✓

NOW: LCM×GCD = (dmn)×d = d^2mn = (dm)×(dn) = a×b. QED.

NUMERICAL CHECK: a=12, b=18.

d=GCD=6. m=2, n=3. GCD(2,3)=1. ✓

LCM=6×2×3=36. LCM×GCD=36×6=216=12×18. ✓

ANSWER: Proved. LCM(a,b)×GCD(a,b)=ab for positive integers a,b.

Section C: Hard / Challenge Problems — ICSE & Olympiad Level

Challenge Problem 13: Prove: For any integer n, GCD(n, n+1) = 1. Extend: GCD(n, n+k) divides k.

✔ Solution

PROOF: GCD(n, n+1) = 1.

Let d = GCD(n, n+1). Then d|n and d|(n+1).

d | [(n+1) − n] = 1.

Since d|1 and d is a positive integer: d = 1.

Therefore GCD(n, n+1) = 1. QED.

MEANING: Consecutive integers are ALWAYS coprime.

No matter how large n is, n and n+1 share no common factor.

EXTENSION: GCD(n, n+k) divides k.

Let d = GCD(n, n+k). Then d|n and d|(n+k).

d | [(n+k) − n] = k.

So d | GCD(n, k). (d is a common divisor of n and k.)

Also: GCD(n,k) | n and GCD(n,k) | k, so GCD(n,k) | (n+k).

Thus GCD(n,k) is a common divisor of n and n+k: GCD(n,k) | d.

Since d | GCD(n,k) and GCD(n,k) | d: d = GCD(n,k).

Therefore: GCD(n, n+k) = GCD(n, k). This is stronger than "divides k"!

EXAMPLES:

GCD(15, 21) = GCD(15, 6) = GCD(6, 3) = 3. (k=6=21-15)

GCD(100, 125) = GCD(100, 25) = 25. ✓

GCD(252, 105): GCD(252, 147) = GCD(147, 105) = GCD(105, 42) = 21. ✓

ANSWER: GCD(n,n+1)=1 (consecutive integers always coprime). GCD(n,n+k)=GCD(n,k).

Challenge Problem 14: Prove: If p is prime and p | ab, then p | a or p | b (Euclid's Lemma). Use this to prove the Fundamental Theorem of Arithmetic: every integer > 1 has a UNIQUE prime factorisation.

✔ Solution

EUCLID'S LEMMA: If p is prime and p|ab, then p|a or p|b.

PROOF:

Suppose p|ab but p a. We show p|b.∤

Since p is prime and p a: GCD(p, a) = 1.∤

By Bézout's Identity: mp + na = 1 for some integers m, n.

Multiply by b: mpb + nab = b.

p | mpb (obviously) and p | nab (since p|ab).

Therefore p | (mpb + nab) = b. QED.

EXTENSION: If p | a₁a₂…a_k, then p | a_i for some i.

(By induction using the lemma repeatedly.)

FUNDAMENTAL THEOREM OF ARITHMETIC:

Every integer n > 1 can be written as a product of primes in EXACTLY ONE WAY

(up to order of factors).

PROOF OF UNIQUENESS (using Euclid's Lemma):

Suppose n = p₁p₂…p_r = q₁q₂…q_s (two prime factorisations).

p₁ | q₁q₂…q_s. By Euclid's Lemma: p₁ | q_j for some j.

Since q_j is prime and p₁ | q_j: p₁ = q_j.

Cancel p₁ = q_j from both sides. Repeat for each prime.

All p_i match some q_j, so r = s and the factorisations are identical. QED.

EXAMPLE: 360 = 2^3×3^2×5. There is NO other way to write 360 as a product of primes. ANSWER: Euclid's Lemma and FTA proved. Uniqueness of prime factorisation is non-trivial!

Challenge Problem 15: The Chicken McNugget Theorem (Frobenius): If GCD(a, b) = 1, the largest integer that CANNOT be expressed as ax + by (x, y ≥ 0 integers) is ab − a − b. Verify for (a, b) = (3, 5).

✔ Solution

STATEMENT: For coprime positive integers a, b: the largest non-representable

number (cannot be written as ax+by with x,y ≥ 0) is ab−a−b.

Also called the FROBENIUS NUMBER or "coin problem."

VERIFICATION for a=3, b=5:

GCD(3,5)=1. ab−a−b = 15−3−5 = 7.✓

Can we represent each number from 1 to 7?

1: 3x+5y=1. No non-negative solution (min positive combo: 3+5=8, cannot get 1).

2: 3x+5y=2. No.

3: 3×1+5×0=3. YES (x=1,y=0).

4: No — 4 cannot be made from 3s and 5s with non-negative counts.

5: 3×0+5×1=5. YES.

6: 3×2+5×0=6. YES.

7: 3x+5y=7. x=4: 12>7. x=1: 7−3=4, not mult of 5. x=0: 7, not mult of 5. NO.

8: 3×1+5×1=8. YES.

9: 3×3=9. YES.

10: 5×2=10. YES.

11: 3×2+5×1=11. YES.

12: 3×4=12. YES.

13: 3×1+5×2=13. YES.

So 7 is the LARGEST that cannot be represented. ✓

The non-representable numbers ≤ 7 are: 1, 2, 4, 7.

Count = (3−1)(5−1)/2 = 2×4/2 = 4. (Formula gives count too!)✓

PRACTICAL INTERPRETATION: If a shop only sells items in packs of 3 and 5,

you can buy ANY quantity ≥ 8, but CANNOT buy exactly 7 (or 1, 2, 4).

INDIA APPLICATION: If bus tokens come in packs of 5 and 12 (GCD=1):

Frobenius = 5×12−5−12 = 43. Largest unobtainable quantity = 43.

Challenge Problem 16: Find GCD(F_{n+1}, F_n) for Fibonacci numbers, where F_1=1, F_2=1, F_3=2, F_4=3, F_5=5, … Prove this is always 1 (consecutive Fibonacci numbers are coprime).

✔ Solution

FIBONACCI SEQUENCE: F_1=1, F_2=1, F_3=2, F_4=3, F_5=5, F_6=8, F_7=13, F_8=21,...

Definition: F_{n+2} = F_{n+1} + F_n.

CHECK FIRST FEW:

GCD(F_2,F_1)=GCD(1,1)=1. ✓

GCD(F_3,F_2)=GCD(2,1)=1. ✓

GCD(F_4,F_3)=GCD(3,2)=1. ✓

GCD(F_5,F_4)=GCD(5,3)=1. ✓

GCD(F_6,F_5)=GCD(8,5)=1. ✓

PROOF BY INDUCTION:

BASE CASE: GCD(F_2, F_1) = GCD(1,1) = 1. ✓

INDUCTIVE STEP: Assume GCD(F_{n+1}, F_n) = 1. Show GCD(F_{n+2}, F_{n+1}) = 1. F_{n+2} = F_{n+1} + F_n.

GCD(F_{n+2}, F_{n+1}) = GCD(F_{n+1}+F_n, F_{n+1})

= GCD(F_n, F_{n+1}) [by GCD(a+b,b)=GCD(a,b)]

= GCD(F_{n+1}, F_n) [GCD is symmetric]

= 1 (by inductive hypothesis). QED.

BEAUTIFUL RESULT: GCD(F_m, F_n) = F_{GCD(m,n)}.

GCD(F_6, F_4) = F_{GCD(6,4)} = F_2 = 1.

Check: GCD(8,3)=1. ✓

GCD(F_6, F_3) = F_{GCD(6,3)} = F_3 = 2.

Check: GCD(8,2)=2. ✓

ANSWER: GCD(F_{n+1}, F_n) = 1 for all n. Consecutive Fibonacci numbers are always coprime.

OLYMPIAD CORNER

Competition-level problems for IMO, SOF-IMO, IAIS, and National Mathematics Olympiad.

Olympiad Problem O-1: Find all positive integers n such that n | (n² + 1). Show that n = 1 is the only solution.

✔ Solution

Suppose n | (n^2+1).

Since n|n^2 (trivially): n | (n^2+1) implies n | [(n^2+1) − n^2] = 1.

So n|1. Since n is a positive integer: n = 1.

VERIFY n=1: 1|(1^2+1)=2. Yes, 1|2. ✓

For n=2: 2|(4+1)=5? 5/2 is not integer. ✗

For n=3: 3|(9+1)=10? 10/3 is not integer. ✗

For n=5: 5|(25+1)=26? 26/5 not integer. ✗

The key step: n | n^2 always, so n|(n^2+1) forces n|1.

GENERALISATION: n | (n^k + 1) for any k ≥ 1 forces n | 1, so n = 1.

Proof: n|n^k, so n|(n^k+1−n^k)=1. n=1.

ANSWER: n = 1 is the ONLY positive integer such that n | (n^2+1).

Olympiad Problem O-2: Prove: If GCD(a, b) = 1 and c | ab, then there exist integers d, e such that c = de, d | a, e | b, and GCD(d, e) = 1.

✔ Solution

SETUP: GCD(a,b)=1 and c|ab. Find coprime d,e with c=de, d|a, e|b.

Let d = GCD(c, a) and e = c/d.

VERIFY d|a: d=GCD(c,a) divides a. ✓

VERIFY c=de: d=GCD(c,a) divides c, so e=c/d is an integer, and de=c. ✓

VERIFY e|b:

We know c|ab. Since c=de: de|ab.

d|a, so a=dk for some k. ab=dkb. de|dkb e|kb.⇒

It remains to show that GCD(e, a/d) = 1:

d=GCD(c,a). e=c/d. We claim GCD(e,a/d)=1 (where a=d×(a/d)).

GCD(d,e): d=GCD(c,a), e=c/d. Suppose f|d and f|e. Then f|de=c and f|a.

So f|GCD(c,a)=d and f|e=c/d. f|(d and c/d) means f²|c.

This is subtle. Use a cleaner approach:

GCD(e,a): d=GCD(c,a), e=c/d. GCD(c,a)=d, GCD(e,a)=GCD(c/d,a).

Since GCD(a,b)=1: any divisor of a is coprime to b.

e|c and c|ab. So e|ab. Since GCD(e,a): let g=GCD(e,a). g|e and g|a.

g|ab. g|a and g|ab g|ab−0×a... g|GCD(a,ab)=a×GCD(1,b)=a. OK.⇒

GCD(c/d, a/d)=1 follows from definition of d as GCD(c,a): after dividing by d,

remaining gcd is 1. So GCD(e, a/d)=1.

Since e|(a/d)×b and GCD(e,a/d)=1: e|b. ✓

VERIFY GCD(d,e)=1: d=GCD(c,a) and e=c/d.

Any common divisor of d and e divides de=c and divides d which divides a.

So it divides GCD(c,a)=d, which means it divides 1. GCD(d,e)=1. ✓

ANSWER: Proved. c=de with d=GCD(c,a), e=c/d satisfies all required properties.

Olympiad Problem O-3: The Stamps Problem: A post office sells stamps of denomination Rs.7 and Rs.11 only. What is the largest postage amount that CANNOT be made? How many amounts cannot be made in total?

✔ Solution

GCD(7, 11) = 1 (both prime, different). Frobenius theorem applies.

LARGEST NON-REPRESENTABLE: ab−a−b = 7×11−7−11 = 77−18 = 59.

VERIFY 59 cannot be made: 7x+11y=59.

y=0: 59/7 not integer.

y=1: 59−11=48; 48/7 not integer.

y=2: 59−22=37; 37/7 not integer.

y=3: 59−33=26; 26/7 not integer.

y=4: 59−44=15; 15/7 not integer.

y=5: 59−55=4; 4/7 not integer.

y cannot be 6 (66>59). So 59 CANNOT be made. ✓

VERIFY 60 CAN be made: 7x+11y=60.

y=4: 60−44=16; 16/7 not integer.

y=3: 60−33=27; 27/7 not integer.

y=1: 60−11=49=7×7. YES! x=7, y=1. ✓

60=7×7+11×1. ✓

NUMBER OF NON-REPRESENTABLE AMOUNTS:

Formula: (a−1)(b−1)/2 = (7−1)(11−1)/2 = 6×10/2 = 30.

There are exactly 30 postage amounts that cannot be made.

ANSWER: Largest non-representable = Rs.59. Total non-representable amounts = 30.

BRAIN TEASERS

Brain Teaser 1

Two planets complete their orbits in 360 and 450 days respectively. They start aligned today. In how many days will they next align? How many full orbits has each planet completed?

Answer: LCM(360,450). GCD(360,450): 450=1×360+90; 360=4×90+0. GCD=90.

LCM=360×450/90=1800 days. Planet 1 orbits: 1800/360=5. Planet 2 orbits: 1800/450=4. They align after 1800 days (about 4.93 years). Planet 1 completes 5 orbits, planet 2 completes 4 orbits.

Brain Teaser 2

Is it possible to tile a 10×10 floor exactly using 1×4 tiles? (Each tile covers exactly 4 squares and can be placed horizontally or vertically.)

Answer: No! 100 ÷ 4 = 25, so the area is fine, but colour square (row r, column c) with colour (r + c) mod 4. Every 1 × 4 tile, horizontal or vertical, covers exactly one square of each colour, so 25 tiles would cover 25 squares of each colour. Counting on the 10 × 10 board, the colours appear 25, 26, 25 and 24 times. Since these are not all 25, tiling is impossible.

Brain Teaser 3

A number leaves remainder 3 when divided by 7 and remainder 5 when divided by 11. Find the smallest positive such number. (Chinese Remainder Theorem application.)

Answer: n ≡ 3 (mod 7): n=7k+3. Substitute into second: 7k+3 ≡ 5 (mod 11). 7k ≡ 2 (mod 11). Need 7^{- 1} mod 11: 7×8=56=55+1≡1(mod 11). So 7^{-1}≡8(mod 11). k≡8×2=16≡5(mod 11). k=11m+5.

n=7(11m+5)+3=77m+35+3=77m+38. Smallest positive: n=38. Verify: 38=7×5+3 (remainder 3 ); ✓ 38=11×3+5 (remainder 5 ).✓

Brain Teaser 4

Without computing, determine: is GCD(n^2+2, n^2+5) always equal to 1 or 3? (Hint:

GCD(a,b)=GCD(a,b−a).)

Answer: GCD(n² + 2, n² + 5) = GCD(n² + 2, 3), so it is always 1 or 3. It is 3 exactly when 3 divides n² + 2, i.e. when n² ≡ 1 (mod 3) — which happens whenever 3 does not divide n. If 3 divides n, the GCD is 1. Examples: n = 1: GCD(3, 6) = 3; n = 3: GCD(11, 14) = 1.

Brain Teaser 5

Prove or disprove: there exist integers a and b with GCD(a,b)=10 and LCM(a,b)=1000. If yes, find all such pairs.

Answer: GCD×LCM=|a×b|: 10×1000=10000=|ab|. So |ab|=10000. Also GCD=10: a=10m, b=10n with GCD(m,n)=1. ab=100mn=10000, so mn=100. Need GCD(m,n)=1 and mn=100. Factor pairs of 100 with

GCD=1: (1,100)? GCD(1,100)=1 . (4,25)? GCD(4,25)=1 . (m,n)=(1,100),(100,1),(4,25),(25,4). Pairs ✓✓

(a,b)=(10,1000),(1000,10),(40,250),(250,40) and negatives: (−10,−1000) etc. So YES, there exist such pairs. All: {±(10,1000), ±(40,250)} and reverses.

DID YOU KNOW?

THE EUCLIDEAN ALGORITHM (~300 BC) is the OLDEST known non-trivial algorithm, predating modern computers by over 2,300 years! It is described in Euclid's

"Elements" (Book VII, Propositions 1–2). The equivalent algorithm was discovered

independently in India: Aryabhata's "Kuttaka" method (499 AD) is essentially the

Extended Euclidean Algorithm, used to solve linear Diophantine equations.

RSA CRYPTOGRAPHY (which secures your internet banking, UPI, Aadhaar authentication) relies entirely on properties of GCD and modular arithmetic. The security comes

from the difficulty of factoring large numbers — the Fundamental Theorem of

Arithmetic guarantees uniqueness but doesn't give us an efficient algorithm to find it!

BÉZOUT'S IDENTITY was known to Indian mathematicians as 'Kuttaka' (क क)',

meaning "the pulveriser," used by Brahmagupta (628 AD) for astronomical calculations.

European mathematicians rediscovered it much later (Bézout, 1779).

THE CHICKEN MCNUGGET THEOREM (Frobenius Coin Problem) was popularised by the fact

that McDonald's originally sold nuggets only in packs of 6, 9, and 20.

The largest number of nuggets you could NOT order was... 43!

(Using the Frobenius theorem for three coprime-like numbers.)

FIBONACCI AND GCD: GCD(F_m, F_n) = F_{GCD(m,n)} is a profound identity connecting the Fibonacci sequence with number theory. It was first proved by Lucas in 1876.

PRACTICE EXERCISE 28.A — Easy (Classes 7–8)

Show all working for divisibility tests, GCD, and LCM calculations.

1. Test 8,47,52,036 for divisibility by 2, 3, 4, 5, 6, 8, 9, 10, 11.

2. Find GCD using both prime factorisation and Euclidean Algorithm: (a) GCD(126, 84) (b) GCD(345, 115) (c) GCD(441, 189).

3. Find LCM using GCD formula: (a) LCM(24, 36, 60) (b) LCM(15, 35, 21) (c) LCM(100, 75, 50).

4. Verify GCD×LCM=product for: (a) 48 and 72 (b) 35 and 49.

5. Express GCD(60, 168) as a linear combination 60m+168n. Find m and n.

6. Solve the Diophantine equation: 5x+8y=1. Find three integer solutions.

7. Three people meet every 3, 5, and 7 days. How often do all three meet together?

8. GCD(2^5×3^3×5^2, 2^3×3^4×5). LCM of the same.

9. Find all integers n with 1≤n≤30 such that GCD(n,30)=6.

10. Prove: if n is a positive integer and GCD(n, 12) = 4, find all possible values of n mod 12.

PRACTICE EXERCISE 28.B — Medium (Classes 8–9)

1. Prove: GCD(2n+1, n+1)=1 for any positive integer n.

2. Solve completely: 17x+11y=10. Find general solution and all solutions with |x|≤10.

3. A rectangular garden 120m×96m is to be divided into square plots of maximum size. (a) Plot size, (b) number of plots, (c) if fencing costs Rs.200/m, total fencing cost.

4. Prove: LCM(a,b,c)=abc/[GCD(a,b)×GCD(b,c)×GCD(a,c)/GCD(a,b,c)] is NOT always correct. Find the correct formula.

5. A factory has 3 assembly lines: line A takes 2.5h per unit, B takes 3h, C takes 5h. All start at 8AM. When do they all simultaneously finish a unit?

6. GCD and Fibonacci: Verify GCD(F_8, F_6)=F_{GCD(8,6)}=F_2. (F_8=21, F_6=8).

7. Prove: GCD(n^2−1, n^2+n−1)=n+1 for n>1. [Hint: GCD(a,b)=GCD(a,b-a).] Verify for n=5.

8. Find all (a,b) with a,b positive integers, GCD(a,b)=6, LCM(a,b)=180.

9. A number is divisible by 7. When its last digit is doubled and subtracted from the rest, the result is divisible by 7 (divisibility rule). PROVE this rule.

10. How many integers from 1 to 1000 are divisible by at least one of 3, 5, or 7? (Inclusion- Exclusion with GCD/LCM.)

PRACTICE EXERCISE 28.C — Challenge (Classes 9–11)

1. Prove Bézout's Identity: For any integers a,b (not both 0), GCD(a,b)=ma+nb for some integers m,n. [Hint: Consider the smallest positive element of S={xa+yb: x,y integers}.]

2. Prove Wilson's Theorem using group theory: (p−1)! ≡ −1 (mod p) for prime p. (Hint: pair each integer 1≤k≤p−1 with its modular inverse k^{-1}, except k=k^{-1} when k^2≡1(mod p).)

3. Chinese Remainder Theorem: Prove that if GCD(m,n)=1, then for any a,b, there exists unique x (mod mn) with x≡a(mod m) and x≡b(mod n).

4. Prove: For any two consecutive Fibonacci numbers F_n and F_{n+1},

F_{n+1}²−F_n×F_{n+2}=(−1)^n. (Cassini's Identity)

5. Find all integer solutions to: x^2−y^2=2026. Hint: factor as (x+y)(x−y)=2026.

6. Prove: If p is prime and 1≤k≤p−1, then p divides C(p,k)=[p!/(k!(p-k)!)].

7. GCD and polynomials: The Euclidean Algorithm works for polynomials too. Find GCD(x^3−1, x^2+x−2) over integers.

8. (Research) Euler's totient function φ(n): count integers 1≤k≤n with GCD(k,n)=1. Compute φ(12), φ(15), φ(100). Prove φ(p)=p−1 for prime p.

CHAPTER SUMMARY

CHAPTER 28 — KEY POINTS SUMMARY

1. b|a means b divides a: a=kb for some integer k. Signs ignored for divisibility.

2. Divisibility rules: memorise for 2,3,4,5,6,7,8,9,10,11.

3. Division Algorithm: a=qb+r with 0≤r<b. Unique q and r.

4. a≡0(mod b) means b|a. Modular arithmetic builds on division algorithm.

5. GCD(a,b): largest positive integer dividing both. GCD(|a|,|b|) ignores signs.

6. Euclidean Algorithm: GCD(a,b)=GCD(b, a mod b). Repeat until r=0.

7. GCD of three: GCD(a,b,c)=GCD(GCD(a,b),c).

8. If GCD(a,b)=d: a/d and b/d are COPRIME.

9. LCM(a,b)×GCD(a,b)=|a×b|. So LCM=|ab|/GCD.

10. Bézout: GCD(a,b)=ma+nb for some integers m,n (extended Euclidean).

11. ax+by=c has integer solutions ⇔ GCD(a,b)|c.

12. General solution: x=x₀+(b/d)t, y=y₀−(a/d)t, for all integers t.

13. GCD(n,n+1)=1: consecutive integers are ALWAYS coprime.

14. GCD(n,n+k)=GCD(n,k): a useful reduction formula.

15. Frobenius: largest non-representable as ax+by (x,y≥0, GCD(a,b)=1) = ab−a−b.

ANSWER KEY — CHAPTER 28

Exercise 28.A (Easy)

1. 8,47,52,036: last digit=6(even)→2 ; digit sum=8+4+7+5+2+0+3+6=35, 35/3=11r2 not3; last 2 ✓✗
digits=36, 36/4=9 4 ; last digit≠5 ; not(2 and 3)→6 ; last 3=036=36, 36/8=4.5 not8; 35 not div9 ; Ⅎ ✓✗✗✗✗
last≠0 not10; alt sum=(8−4+7−5+2−0+3−6)=5. Not div11 . 2. ✗✗

(a)GCD(126,84):126=1×84+42;84=2×42+0.GCD=42. (b)GCD(345,115):345=3×115+0.GCD=115. (c)GCD(441,189):441=2×189+63;189=3×63+0.GCD=63. 3.

(a)LCM(24,36):GCD=12,LCM=72.LCM(72,60):GCD(72,60)=12,LCM=360.

(b)LCM(15,35):GCD=5,LCM=105.LCM(105,21):GCD=21,LCM=105.

(c)LCM(100,75):GCD=25,LCM=300.LCM(300,50):GCD=50,LCM=300. 4.

(a)GCD(48,72)=24.LCM=48×72/24=144.24×144=3456=48×72 . ✓

(b)GCD(35,49)=7.LCM=35×49/7=245.7×245=1715=35×49 . 5. ✓

GCD(60,168):168=2×60+48;60=1×48+12;48=4×12+0.GCD=12. Back-

sub:12=60−(168−2×60)=3×60−168. m=3,n=-1. 6. GCD(5,8)=1. 5×(−3)+8×2=−15+16=1. Solutions: x=−3+8t, y=2−5t. t=0:(−3,2); t=1:(5,−3); t=−1:(−11,7). 7. LCM(3,5,7)=105 days (all prime, pairwise coprime). 8. GCD: take lower powers: 2^3×3^3×5^1=8×27×5=1080. LCM: higher powers:

2^5×3^4×5^2=32×81×25=64800. 9. n≡? Need GCD(n,30)=6. n = 6k, and GCD(6k, 30) = 6 × GCD(k,

5) = 6. So GCD(k,5)=1. n≤30: k≤5. k {1,2,3,4} with GCD(k,5)=1: all four. n {6,12,18,24}. 10. ∈∈

GCD(n,12)=4 means n=4m, GCD(4m,12)=4×GCD(m,3)=4. GCD(m,3)=1: m≡±1(mod 3). n=4m, n mod 12: m=3q+1: n = 12q + 4 ≡ 4 (mod 12). m = 3q + 2: n = 12q + 8 ≡ 8 (mod 12). So n≡4 or 8(mod 12).

Exercise 28.B (Medium) — Selected

1. GCD(2n+1,n+1): GCD(2n+1,n+1)=GCD(2n+1−2(n+1),n+1)=GCD(−1,n+1)=1. 2. 17x+11y=10. ✓ GCD(17,11)=1. Euclidean: 17=1×11+6;11=1×6+5;6=1×5+1. Back:

1=6−5=6−(11−6)=2×6−11=2(17−11)−11=2×17−3×11. So 10=20×17+(−30)×11. x₀=20,y₀=−30.

General: x=20+11t,y=−30−17t. For|x|≤10: 20+11t≤10 t≤−10/11 t≤−1 and ⇒⇒
20+11t≥−10 t≥−30/11 t≥−3. t {−3,−2,−1}: x=−13,−2,9. 6. GCD(F₈, F₆) = GCD(21, 8) = 1 (Euclid: ⇒⇒∈

21 = 2 × 8 + 5, …, 2 = 2 × 1), and F_GCD(8, 6) = F₂ = 1 8. GCD=6,LCM=180. ✓

a=6m,b=6n,GCD(m,n)=1.mn=180/6=30. Factor pairs of 30 with GCD=1:(1,30),(2,15),(3,10),(5,6). All have GCD=1. (a,b)=(6,180),(12,90),(18,60),(30,36) and reverses. 10. Count div by 3:

floor(1000/3)=333. By 5: 200. By 7: 142. By 15: 66. By 21: 47. By 35: 28. By 105: 9.

Total=333+200+142−66−47−28+9=543.

Exercise 28.C (Challenge) — Notes

1. Proof: S={xa+yb}>0 non-empty. Let d=min(S). d|a,d|b by division algo. Any common divisor e|d. So d=GCD(a,b). 4. Cassini identity proved by induction. 5. x^2-y^2=2026 has no integer solutions (2026 is 2 mod 4). 8. phi(12)=4; phi(15)=8; phi(100)=40.

CHAPTER 28 — NEW TERMS FOR GLOSSARY

TermDefinition
Bézout's IdentityGCD(a,b)=ma+nb for some integers m,n. Extended Euclidean Algorithm finds

m,n.

Chinese RemainderSystem of congruences x≡a(mod m), x≡b(mod n) has unique solution mod mn
Theoremwhen GCD(m,n)=1.
CoprimeGCD(a,b)=1; a and b share no common factor > 1. Also "relatively prime."
Diophantine EquationPolynomial equation seeking only integer solutions. Named after Diophantus

(~250 AD).

Division Algorithma=qb+r, 0≤r<b. Unique quotient q and remainder r for positive b.
Euclid's LemmaIf prime p divides ab, then p|a or p|b. Key step in proving uniqueness of

factorisation.

Euclidean AlgorithmGCD(a,b)=GCD(b,a mod b). Oldest known non-trivial algorithm (~300 BC).
Frobenius NumberLargest integer not representable as ax+by (x,y≥0, GCD(a,b)=1) = ab−a−b.
Fundamental Theorem ofEvery integer >1 has a unique prime factorisation (up to order).

Arithmetic

Kuttakaक तक (Sanskrit: pulveriser). Aryabhata's algorithm (499 AD) for solving linear

Diophantine equations.

Modular Arithmetica≡b(mod n): a and b leave the same remainder when divided by n.
Totient FunctionEuler's φ(n): count of integers 1≤k≤n with GCD(k,n)=1.