Problem Solving and Recreational Mathematics
Paul Yiu
Department of Mathematics Florida Atlantic University
Summer 2012
Chapters 16–33
July 20
Monday 6/25 7/2 7/9 7/16 7/23 7/30 Wednesday 6/27 *** 7/11 7/18 7/25 8/1 Friday 6/29 7/6 7/13 7/20 7/27 8/3 Contents
16 The golden ratio 601 16.1 Divisionofasegmentinthegoldenratio ...... 601 16.2 Theregularpentagon ...... 603 16.3 Construction of 36◦, 54◦, and 72◦ angles ...... 604 16.4 Themostnon-isoscelestriangle ...... 608
17 Medians and angle Bisectors 609 17.1 Apollonius’Theorem ...... 609 17.2 Anglebisectortheorem ...... 611 17.3 Theanglebisectors ...... 612 17.4 Steiner-LehmusTheorem ...... 613
18 Dissections 615 18.1 Dissection of the 6 6 square...... 615 18.2 Dissectionof a 7 ×7 squareintorectangles...... 617 18.3 Dissectarectangletoformasquare× ...... 619 18.4 Dissectionofasquareintothreesimilarparts ...... 620
19 Pythagorean triangles 701 19.1 PrimitivePythagoreantriples ...... 701 19.1.1 Rationalangles ...... 702 19.1.2 Some basic properties of primitive Pythagorean triples...... 702 19.2 A Pythagorean trianglewithan inscribedsquare . . . . 704 19.3 When are x2 px q bothfactorable? ...... 705 19.4 Dissection of− a square± into Pythagorean triangles . . . . 705
20 Integer triangles with a 60◦ or 120◦ angle 707 20.1 Integer triangles with a 60◦ angle ...... 707 iv CONTENTS
20.2 Integer triangles with a 120◦ angle ...... 710
21 Triangles with centroid on incircle 713 21.1 Construction ...... 714 21.2 Integertriangleswithcentroidontheincircle ...... 715
22 The area of a triangle 801 22.1 Heron’sformulafortheareaofatriangle ...... 801 22.2 Herontriangles...... 803 22.2.1 TheperimeterofaHerontriangleiseven . . . . 803 22.2.2 The area of a Heron triangle is divisible by 6 . . 803 22.2.3 Heron triangles with sides < 100 ...... 804 22.3 Heron triangles with sides in arithmetic progression . . 805 22.4 IndecomposableHerontriangles ...... 807 22.5 Herontriangleaslatticetriangle...... 809
23 Heron triangles 811 23.1 Herontriangleswithareaequaltoperimeter ...... 811 23.2 Herontriangleswithintegerinradii ...... 812 23.3 Division of a triangle into two subtriangles with equal incircles ...... 813 23.4 Inradiiinarithmeticprogression...... 817 23.5 Herontriangleswithintegermedians ...... 818 23.6 Herontriangleswithsquareareas ...... 819
24 TriangleswithsidesandonealtitudeinA.P. 821 24.1 Newton’ssolution ...... 821 24.2 Thegeneralcase ...... 822
25 The Pell Equation 901 25.1 The equation x2 dy2 =1 ...... 901 25.2 The equation x2 − dy2 = 1 ...... 903 25.3 The equation x2 − dy2 = c− ...... 903 − 26 Figurate numbers 907 26.1 Whichtriangularnumbersaresquares?...... 907 26.2 Pentagonalnumbers ...... 909 26.3 Almostsquaretriangularnumbers...... 911 26.3.1 Excessivesquaretriangularnumbers ...... 911 26.3.2 Deficientsquaretriangularnumbers ...... 912 CONTENTS v
27 Special integer triangles 915 27.1 AlmostisoscelesPythagoreantriangles ...... 915 27.1.1 The generators of the almost isosceles Pythagorean triangles...... 916 27.2 Integer triangles (a, a +1, b) with a 120◦ angle . . . . . 917
28 Heron triangles 1001 28.1 Herontriangleswithconsecutivesides ...... 1001 28.2 Heron triangles with two consecutivesquare sides . . . 1002
29 Squares as sums of consecutive squares 1005 29.1 Sumofsquaresofnaturalnumbers ...... 1005 29.2 Sumsofconsecutivesquares: oddnumbercase . . . . . 1008 29.3 Sumsofconsecutivesquares: evennumbercase . . . . 1010 29.4 Sumsofpowersofconsecutiveintegers ...... 1012
30 Lucas’ problem 1013 30.1 Solution of n(n + 1)(2n +1)=6m2 for even n . . . . 1013 30.2 The Pell equation x2 3y2 =1 revisited ...... 1014 30.3 Solution of n(n + 1)(2−n +1)=6m2 for odd n . . . . .1015
31 Some geometry problems 1101
32 Basic geometric constructions 1109 32.1 Somebasicconstructionprinciples ...... 1109 32.2 Geometricmean ...... 1110 32.3 Harmonicmean ...... 1111 32.4 A.M G.M. H.M...... 1112 ≥ ≥ 33 Construction of a triangle from three given points 1115 33.1 Someexamples ...... 1115 33.2 Wernick’sconstructionproblems ...... 1117 Chapter 16
The golden ratio
16.1 Division of a segment in the golden ratio
Given a segment AB, a point P in the segment is said to divide it in 2 AP √5+1 the golden ratio if AP = P B AB. Equivalently, P B = 2 . We shall denote this golden ratio by ϕ· . It is the positive root of the quadratic equation x2 = x +1.
M
Q
A P B A P B
Construction 16.1 (Division of a segment in the golden ratio). Given a segment AB, (1) draw a right triangle ABM with BM perpendicular to AB and half in length, (2) mark a point Q on the hypotenuse AM such that MQ = MB, (3) mark a point P on the segment AB such that AP = AQ. Then P divides AB into the golden ratio. 602 The golden ratio
Suppose P B has unit length. The length ϕ of AP satisfies
ϕ2 = ϕ +1. This equation can be rearranged as
1 2 5 ϕ = . − 2 4 Since ϕ> 1, we have 1 ϕ = √5+1 . 2 Note that AP ϕ 1 2 √5 1 = = = = − . AB ϕ +1 ϕ √5+1 2 This explains the construction above. 16.2 The regular pentagon 603
16.2 The regular pentagon
Consider a regular pentagon ACBDE. It is clear that the five diagonals all have equal lengths. Note that (1) ∠ACB = 108◦, (2) triangle CAB is isosceles, and (3) ∠CAB = ∠CBA = (180◦ 108◦) 2=36◦. − ÷ In fact, each diagonal makes a 36◦ angle with one side, and a 72◦ angle with another. C
A B P
E D
It follows that (4) triangle PBC is isosceles with ∠PBC = ∠P CB = 36◦, (5) ∠BPC = 180◦ 2 36◦ = 108◦, and (6) triangles CAB and− PBC× are similar. Note that triangle ACP is also isosceles since (7) ∠ACP = ∠AP C = 72◦. This means that AP = AC. Now, from the similarity of CAB and PBC, we have AB : AC = BC : P B. In other words AB AP = AP P B, or AP 2 = AB P B. This means that P divides AB in· the golden· ratio. · 604 The golden ratio
16.3 Construction of 36◦, 54◦, and 72◦ angles
Angles of sizes 36◦, 54◦, and 72◦ can be easily constructed from a seg- ment divided in the golden ratio.
C
1
36 36 36◦ ◦ B A P ϕ
ϕ cos36◦ = 2 .
C
C
54◦ 72◦
36◦ B A P 1
54◦ 72◦ B A P ϕ D
1 cos72◦ = 2ϕ . 16.3 Construction of 36◦, 54◦, and 72◦ angles 605
Exercise
1. Three equal segments A1B1, A2B2, A3B3 are positioned in such a way that the endpoints B2, B3 are the midpoints of A1B1, A2B2 respectively, while the endpoints A1, A2, A3 are on a line perpen- dicular to A1B1. Show that A2 divides A1A3 in the golden ratio.
B1
B2 B3
A1 A2 A3
2. Given an equilateral triangle ABC, erect a square BCDE exter- nally on the side BC. Construct the circle, center C, passing through E, to intersect the line AB at F . Show that B divides AF in the golden ratio.
D
C
E
A B F 3. Given a segment AB, erect a square on it, and an adjacent one with base BC. If D is the vertex above A, construct the bisector of angle ADC to intersect AB at P . Calculate the ratio AP : P B.
D
A P B C 606 The golden ratio
4. Let D and E be the midpoints of the sides AB and AC of an equi- lateral triangle ABC. If the line DE intersects the circumcircle of ABC at F , calculate the ratio DE : EF . A
D E F
O
B C
5. Given a segment AB with midpoint M, let C be an intersection of the circles A(M) and B(A), and D the intersection of C(A) and A(C) inside B(A). Prove that the line CD divides AB in the golden ratio.
C
D A B M P
6. The three small circles are congruent. Show that each of the ratios OA T X ZT AB , XY , TO . is equal to the golden ratio.
Z X Y
T B O A 16.3 Construction of 36◦, 54◦, and 72◦ angles 607
7. Which of the two equilateral triangles inscribed in a regular pen- tagon has larger area?
8. Which of the two squares inscribed in a regular pentagon has larger area? 608 The golden ratio
16.4 The most non-isosceles triangle
Given a triangle with sides a, b, c, there are six ratios obtained by com- paring the lengths of a pair of sides: a b b c a c , , , , , . b a c b c a The one which is closest to 1 is called the ratio of nonisoscelity of the triangle. The following theorem shows that there is no most non-isosceles tri- angle. Theorem 16.1. A number η is the ratio of nonisoscelity of a triangle if and only if ϕ 1 < η 1. − ≤ a 1 b 1 1 Proof. First note that if b = r < 1, then r = a > 1. Since 2 (r + r ) > 1, 1 it follows that r is closer to 1 than r . If a b c are the lengths of the three sides of a triangle, the ratio of nonisoscelity≤ ≤ is a b η = max , . b c Since a + b>c, we have a a + b c 1 η +1 +1= > . ≥ b b b ≥ η Therefore, η2 + η > 1. Since the roots of x2 + x 1 are ϕ 1 > 0 and ϕ< 0, we must have η>ϕ 1. Therefore, η −(ϕ 1, −1]. − Conversely, for each number−t (ϕ 1, 1], we∈ have− t2 + t> 1 and 1 1∈ − t +1 > t . The numbers t 1 t form the sides of a triangle with ratio of nonisoscelity equal to t≤. ≤ Chapter 17
Medians and angle Bisectors
17.1 Apollonius’ Theorem
Theorem 17.1. Given triangle ABC, let D be the midpoint of BC. The length of the median AD is given by AB2 + AC2 = 2(AD2 + BD2).
A
B D C Proof. Applying the law of cosines to triangles ABD and ACD, and noting that cos ADB = cos ADC, we have − AB2 = AD2 + BD2 2AD BD cos ADB; − · · AC2 = AD2 + CD2 2AD CD cos ADC, − · · = AD2 + BD2 +2AD BD cos ADB. · · The result follows by adding the first and the third lines.
If ma denotes the length of the median on the side BC, 1 m2 = (2b2 +2c2 a2). a 4 − 610 Medians and angle Bisectors
Example 17.1. Suppose the medians BE and CF of triangle ABC are perpendicular. This means that BG2 + CG2 = BC2, where G is the 4 2 4 2 centroid of the triangle. In terms of the lengths, we have 9 mb + 9 mc = 2 2 2 2 2 2 2 2 2 2 2 a ; 4(mb + mc)=9a ; (2c +2a b )+(2a +2b c )=9a ; b2 + c2 =5a2. − − This relation is enough to describe, given points B and C, the locus of A for which the medians BE and CF of triangle ABC are perpen- dicular. Here, however, is a very easy construction: From b2 + c2 =5a2, we have m2 = 1 (2b2 +2c2 a2) = 9 a2; m = 3 a. The locus of A is a 4 − 4 a 2 the circle with center at the midpoint of BC, and radius 3 BC. 2 · Exercise 1. The triangle with sides 7, 8, 9 has one median equal to a side. Which median and which side are these? 2. The lengths of the sides of a triangle are 136, 170, and 174. Calcu- late the lengths of its medians. 3. Triangle ABC has sidelengths a = 17, b = 13, c = 7. Show that the medians are in the proportions of the sides.
A
7 13
B 17 C 17.2 Angle bisector theorem 611
17.2 Angle bisector theorem
Theorem 17.2 (Angle bisector theorem). The bisectors of an angle of a triangle divide its opposite side in the ratio of the remaining sides. If AX and AX′ respectively the internal and external bisectors of angle BAC, then BX : XC = c : b and BX′ : X′C = c : b. − Z
A
Z′ b c
B X C X′
Proof. Construct lines through C parallel to the bisectors AX and AX′ to intersect the line AB at Z and Z′. (1) Note that ∠AZC = ∠BAX = ∠XAC = ∠ACZ. This means AZ = AC. Clearly, BX : XC = BA : AZ = BA : AC = c : b. (2) Similarly, AZ′ = AC, and BX′ : X′C = BA : AZ′ = BA : AC = c : b. − − 612 Medians and angle Bisectors
17.3 The angle bisectors
The length of the internal bisector of angle A is 2bc A t = cos , a b + c 2
A
ta′ ta
Q B P C and that of the external bisector of angle A is 2bc A t′ = sin . a b c 2 | − | Example 17.2. The triangle (a, b, c) = (125, 154, 169) is a Heron tri- angle with rational angle bisectors. Its area is 9240. The lengths of the bisectors are , , and .
Exercise 1. The triangle with sides 6, 7, 8 has one angle bisector equal to a side. Which angle bisector and which side are these? 1 2. The triangle with sides 17, 24, 27 has one angle bisector equal to a side. Which angle bisector and which side are these? 2 3. The triangle with sides 84, 125, 169 has three rational angle bisec- tors. Calculate the lengths of these bisectors. 3 4. Prove that the bisector of the right angle of a Pythagorean triangle cannot have rational length. 5. Give an example of a Pythagorean triangle with a rational bisector. 6. Prove that the bisectors of the acute angles of a Pythagorean trian- gle cannot be both rational.
1tb = a = 6. 2ta = b = 24. 3 975 26208 12600 ta = 7 , tb = 253 , tc = 209 . 17.4 Steiner-Lehmus Theorem 613
17.4 Steiner-Lehmus Theorem
Theorem 17.3. A triangle is isosceles if it has two equal angle bisectors.
A
F Y Z E
B C
Proof. Suppose the bisectors BE = CF , but triangle ABC not isosce- les. We may assume ∠B < ∠C. Construct parallels to BC through E and F to intersect AB and AC at Z and Y respectively. (1) In the isosceles triangles ZBE and Y CF with equal bases BE and CF , ∠ZBE < ∠Y CF = EZ Y A tb′ C B a tc′ Z 614 Medians and angle Bisectors 1 (1) From tb′ = a, we have 2 (π β)=2γ; β +4γ = π. 1 − (2) From tc′ = a, we have 2 (π γ)= π 2(π β)=2β π; 4β+γ =3π. 11π π − −π − − From these, β = 15 , γ = 15 , and α = 5 . Exercise 1. The bisector ta and the external bisector tb′ of triangle ABC satisfy 4 ta = tb′ = c. Calculate the angles of the triangle. Y C tb′ ta X A c B 2. AD and BE are angle bisectors of triangle ABC, with D on BC and E on AC. Suppose that AD = AB and BE = BC. Determine the angles of the triangle. Show that if CF is the external bisector of angle C, then CF = CA. 5 A E B D C 4 2π 7π 2π Answer: α = 15 , β = 15 , γ = 5 . 5 2π 6π 5π Answer: α = 13 ,β = 13 , γ = 13 . Chapter 18 Dissections 18.1 Dissection of the 6 6 square × Since 1+2+3+4+5+6+7+8=62, it is reasonable to look for a dissection of a 6 6 square into eight pieces with areas 1, 2, ..., 8 square units. × 1. 5 cuts: Construct a line through A which completes the dissection. A 2. 4 straight cuts: Construct a line through B which completes the dissection. B 616 Dissections 3. 5 straight cuts: Construct two lines through C to complete the dis- section. C 18.2 Dissection of a 7 7 square into rectangles 617 × 18.2 Dissection of a 7 7 square into rectangles × Dissect a square into seven rectangles of different shapes but all having the same area. 1 R4 R5 R7 R2 R3 R6 R1 Suppose each side of the square has length 7, and for i = 1, 2 ..., 7, the rectangle Ri has (horizontal) length ai and (vertical) height bi. Set- ting a1 = r, we compute easily in succession, b1, b2, a2, a3, b3, b4, a4, a5, b5, using aibi =7. Now, a =7 a a , 6 − 2 − 3 b =7 b b , 6 − 1 − 5 a =7 a a a , 7 − 2 − 3 − 5 b =7 b b b . 7 − 1 − 4 − 6 rectangle ai bi R 7 1 r r r 7(r 1) R − 2 r 1 r R − 7 3 7 r 7 r 7−r 7(6− r) R − 4 6−r 7 r 5(7r −7 r2) 7(6 r)(−r 1)3 R − − − − 5 (6 r)(r 1) 5(7r 7 r2 −r(r 2)− 7(r 1)(29−r −35 4r2 ) R − − − − 6 r 1 5r(7r 7 r2) (7 r)(6 r)(28− 27r+4r2 ) 7(6− r−) R − − − − 7 5 r 5(7 r)(7r 7 r2) − − − − 1Problem 2567, Journal of Recreational Math., . A dissection into seven rectangles was given by Hess and Ibstedt. Markus G¨otz showed that no solution with n rectangles exists for 2 n 6. ≤ ≤ 618 Dissections The relations a6b6 =7 and a7b7 =7 both reduce to (2r 7)(2r2 14r +15)= 0. − − 7 7 √19 Since r = 2 or −2 would make a7, b7 negative, we must have r = 7+√19 2 . The dimensions of the rectangles are as follows. rectangle ai bi R 7+√19 77 √19 1 2 −15 R 7(8+√19) 8 √19 2 15 −3 R 7(7+√19) 7 √19 3 15 −2 8+√19 7(8 √19) R − 4 3 15 R 5 21 5 3 5 5(1+√19) 7( 1+√19) R − 6 6 15 5( 1+√19) 7(1+√19) R − 7 6 15 18.3Dissectarectangletoformasquare 619 18.3 Dissect a rectangle to form a square Dissect a given rectangle by two straight cuts into three pieces that can be reassembled into a square. If this is possible, the lengths of the cuts must be as follows, and it is enough to verify that x = √ab b. − a √ab √ab − b x √ab a √ab This is clear since − b √b x =(a √ab) = √a(√a √b) = √ab b. − · √ab − · √a − a √ab − b √ab 620 Dissections 18.4 Dissection of a square into three similar parts Dissect a square into three similar parts, no two congruent. 2 D 1 x C x x2 x +1 − A B x2 +1 Solution. x2 +1= x(x2 x + 1); x3 2x2 + x 1=0. − − − Exercise 1. Show that the area of the largest rectangle is x4. Solution. Thisareais (x2 + 1)(x2 x + 1) − = x4 x3 + x2 + x2 x +1 − − = x4 x3 +2x2 x +1 − − = x4. 18.4 Dissection of a square into three similar parts 621 Exercise 1. Show how the square should be dissected so that it can be reassem- bled into a rectangle. D C x Q P Y A x X B 2. Let P and Q be points on the sides AB and BC of rectangle ABCD. D C T3 Q T1 T2 A P B (a) Show that if the areas of triangles AP D, BP Q and CDQ are equal, then P and Q divide the sides in the golden ratio. (b) If, in addition, DP = P Q, show that the rectangle is golden, AB ∠ i.e., BC = ϕ, and DP Q is a right angle. Chapter 19 Pythagorean triangles 19.1 Primitive Pythagorean triples A Pythagorean triangle is one whose sidelengths are integers. An easy way to construct Pythagorean triangles is to take two distinct positive integers m > n and form (a, b, c)=(2mn, m2 n2, m2 + n2). − Then, a2 + b2 = c2. We call such a triple (a, b, c) a Pythagorean triple. The Pythagorean triangle has perimeter p = 2m(m + n) and area A = mn(m2 n2). − B 2 n + 2 2mn m A C m2 n2 − A Pythagorean triple (a, b, c) is primitive if a, b, c do not have a common divisor (greater than 1). Every primitive Pythagorean triple is constructed by choosing m, n to be relatively prime and of opposite parity. 702 Pythagorean triangles 19.1.1 Rational angles The (acute) angles of a primitive Pythagorean triangle are called rational angles, since their trigonometric ratios are all rational. sin cos tan 2mn m2 n2 2mn A m2+n2 m2+−n2 m2 n2 m2 n2 2mn m2−n2 B m2+−n2 m2+n2 2mn− A B More basic than these is the fact that tan 2 and tan 2 are rational: A n B m n tan = , tan = − . 2 m 2 m + n This is easily seen from the following diagram showning the incircle of the right triangle, which has r =(m n)n. − B n ) n + m ( (m + n)n ) n I r − m ( m r (m − n)n A C m(m − n) (m − n)n 19.1.2 Some basic properties of primitive Pythagorean triples 1. Exactly one leg is even. 2. Exactly one leg is divisible by 3. 3. Exactly one side is divisible by 5. 4. The area is divisible by 6. 19.1 Primitive Pythagorean triples 703 Appendix: Primitive Pythagorean triples < 1000 m, n a, b, c m, n a, b, c m, n a, b, c m, n a, b, c 2, 1 3, 4, 5 3, 2 5, 12, 13 4, 1 15, 8, 17 4, 3 7, 24, 25 5, 2 21, 20, 29 5, 4 9, 40, 41 6, 1 35, 12, 37 6, 5 11, 60, 61 7, 2 45, 28, 53 7, 4 33, 56, 65 7, 6 13, 84, 85 8, 1 63, 16, 65 8, 3 55, 48, 73 8, 5 39, 80, 89 8, 7 15, 112, 113 9, 2 77, 36, 85 9, 4 65, 72, 97 9, 8 17, 144, 145 10, 1 99, 20, 101 10, 3 91, 60, 109 10, 7 51, 140, 149 10, 9 19, 180, 181 11, 2 117, 44, 125 11, 4 105, 88, 137 11, 6 85, 132, 157 11, 8 57, 176, 185 11, 10 21, 220, 221 12, 1 143, 24, 145 12, 5 119, 120, 169 12, 7 95, 168, 193 12, 11 23, 264, 265 13, 2 165, 52, 173 13, 4 153, 104, 185 13, 6 133, 156, 205 13, 8 105, 208, 233 13, 10 69, 260, 269 13, 12 25, 312, 313 14, 1 195, 28, 197 14, 3 187, 84, 205 14, 5 171, 140, 221 14, 9 115, 252, 277 14, 11 75, 308, 317 14, 13 27, 364, 365 15, 2 221, 60, 229 15, 4 209, 120, 241 15, 8 161, 240, 289 15, 14 29, 420, 421 16, 1 255, 32, 257 16, 3 247, 96, 265 16, 5 231, 160, 281 16, 7 207, 224, 305 16, 9 175, 288, 337 16, 11 135, 352, 377 16, 13 87, 416, 425 16, 15 31, 480, 481 17, 2 285, 68, 293 17, 4 273, 136, 305 17, 6 253, 204, 325 17, 8 225, 272, 353 17, 10 189, 340, 389 17, 12 145, 408, 433 17, 14 93, 476, 485 17, 16 33, 544, 545 18, 1 323, 36, 325 18, 5 299, 180, 349 18, 7 275, 252, 373 18, 11 203, 396, 445 18, 13 155, 468, 493 18, 17 35, 612, 613 19, 2 357, 76, 365 19, 4 345, 152, 377 19, 6 325, 228, 397 19, 8 297, 304, 425 19, 10 261, 380, 461 19, 12 217, 456, 505 19, 14 165, 532, 557 19, 16 105, 608, 617 19, 18 37, 684, 685 20, 1 399, 40, 401 20, 3 391, 120, 409 20, 7 351, 280, 449 20, 9 319, 360, 481 20, 11 279, 440, 521 20, 13 231, 520, 569 20, 17 111, 680, 689 20, 19 39, 760, 761 21, 2 437, 84, 445 21, 4 425, 168, 457 21, 8 377, 336, 505 21, 10 341, 420, 541 21, 16 185, 672, 697 21, 20 41, 840, 841 22, 1 483, 44, 485 22, 3 475, 132, 493 22, 5 459, 220, 509 22, 7 435, 308, 533 22, 9 403, 396, 565 22, 13 315, 572, 653 22, 15 259, 660, 709 22, 17 195, 748, 773 22, 19 123, 836, 845 22, 21 43, 924, 925 23, 2 525, 92, 533 23, 4 513, 184, 545 23, 6 493, 276, 565 23, 8 465, 368, 593 23, 10 429, 460, 629 23, 12 385, 552, 673 23, 14 333, 644, 725 23, 16 273, 736, 785 23, 18 205, 828, 853 23, 20 129, 920, 929 24, 1 575, 48, 577 24, 5 551, 240, 601 24, 7 527, 336, 625 24, 11 455, 528, 697 24, 13 407, 624, 745 24, 17 287, 816, 865 24, 19 215, 912, 937 25, 2 621, 100, 629 25, 4 609, 200, 641 25, 6 589, 300, 661 25, 8 561, 400, 689 25, 12 481, 600, 769 25, 14 429, 700, 821 25, 16 369, 800, 881 25, 18 301, 900, 949 26, 1 675, 52, 677 26, 3 667, 156, 685 26, 5 651, 260, 701 26, 7 627, 364, 725 26, 9 595, 468, 757 26, 11 555, 572, 797 26, 15 451, 780, 901 26, 17 387, 884, 965 27, 2 725, 108, 733 27, 4 713, 216, 745 27, 8 665, 432, 793 27, 10 629, 540, 829 27, 14 533, 756, 925 27, 16 473, 864, 985 28, 1 783, 56, 785 28, 3 775, 168, 793 28, 5 759, 280, 809 28, 9 703, 504, 865 28, 11 663, 616, 905 28, 13 615, 728, 953 29, 2 837, 116, 845 29, 4 825, 232, 857 29, 6 805, 348, 877 29, 8 777, 464, 905 29, 10 741, 580, 941 29, 12 697, 696, 985 30, 1 899, 60, 901 30, 7 851, 420, 949 31, 2 957, 124, 965 31, 4 945, 248, 977 31, 6 925, 372, 997 704 Pythagorean triangles 19.2 A Pythagorean triangle with an inscribed square How many matches of equal lengths are required to make up the follow- ing configuration? Suppose the shapeof the right triangleis givenby a primitive Pythagorean triple (a, b, c). The lengthof a side of the square must be a commonmul- tiple of a and b. The least possible value is the product ab. There is one such configuration consisting of (i) two Pythagorean triangles obtained by magnifying (a, b, c) a and b times, (ii) a square of side ab. The total number of matches is (a + b)(a + b + c)+2ab =(a + b + c)c +4ab. The smallest one is realized by taking (a, b, c)=(3, 4, 5). It requires 108 matches. How many matches are required in the next smallest configuration? 19.3 When are x2 px q bothfactorable? 705 − ± 19.3 When are x2 px q both factorable? − ± For integers p and q, the quadratic polynomials x2 px+q and x2 px q both factorable (over integers) if and only if p2 4−q and p2 +4q are− both− squares. Thus, p and q are respectively the hypotenuse− and area of a Pythagorean triangle. p2 +4q =(a + b)2, p2 4q =(b c)2. − − b a p p b b − a b − a q a q a b c = p q x2 − px + q x2 + px − q 3 4 5 6 (x − 2)(x − 3) (x − 1)(x + 6) 5 12 13 30 (x − 3)(x − 10) (x − 2)(x + 15) 8 15 17 60 (x − 5)(x − 12) (x − 3)(x + 20) The roots of x2 px+q are s a and s b, while thoseof x2+px q are s c and s. Here,− s is the semiperimeter− − of the Pythagorean triangle.− − − 19.4 Dissection of a square into Pythagorean triangles Here is the smallest square which can be dissected into three Pythagorean triangles and one with integer sides and integer area. 255 105 136 289 375 360 424 224 360 706 Pythagorean triangles Exercise 1. A man has a square field, 60 feet by 60 feet, with other property adjoining the highway. He put up a straight fence in the line of 3 trees, at A, P , Q. If the distance between P and Q is 91 feet, and that from P to C is an exact number of feet, what is this distance? A 60 B P 60 91 ? Q D C 2. Give an example of a primitive Pythagorean triangle in which the hypotenuse is a square. 3. Give an example of a primitive Pythagorean triangle in which the even leg is a square. 4. Find the smallest Pythagorean triangle whose perimeter is a square (number). 5. Find the shortest perimeter common to two different primitive Pythagorean triangles. 6. Show that there are an infinite number of Pythagorean triangles whose hypotenuse is an integer of the form 3333 3. ··· 7. For each natural number n, how many Pythagorean triangles are there such that the area is n times the perimeter? How many of these are primitive? 8. Find the least number of toothpicks (of equal size) needed to form Chapter 20 60 Integer triangles with a ◦ or 120 ◦ angle 20.1 Integer triangles with a 60◦ angle If triangle ABC has C = 60◦, then c2 = a2 ab + b2. (20.1) − Integer triangles with a 60◦ angle therefore correspond to rational points in the first quadrant on the curve x2 xy + y2 =1. (20.2) − Note that the curve contains the point P = ( 1, 1). By passing a line of rational slope t through P to intersect the− curve− again, we obtain a parametrization of the rational points. Now, such a line has equation y = 1+ t(x + 1). Solving this simultaneously with (20.2) we obtain (x, y)=(− 1, 1) = P , and − − 2t 1 t(2 t) (x, y)= − , − , t2 t +1 t2 t +1 − − 1 which is in the first quadrant if 2 < t 2. By symmetry, we may 1 ≤ simply take 2 < t 1 to avoid repetition. q ≤ Putting t = p for relatively prime integers p, q, and clearing denomi- 708 Integertriangleswitha 60◦ or 120◦ angle t P nators, we obtain a =p(2q p), − b =q(2p q), − c =p2 pq + q2, − with p < q p. Dividing by gcd(a, b) = gcd(p + q, 3), we obtain the 2 ≤ primitive integer triangles with a 60◦ angle: p q (a,b,c) 1 1 (1, 1, 1) 3 2 (3, 8, 7) 4 3 (8, 15, 13) 5 3 (5, 21, 19) 5 4 (5, 8, 7) 6 5 (24, 35, 31) 7 4 (7, 40, 37) 7 5 (7, 15, 13) 7 6 (35, 48, 43) 8 5 (16, 55, 49) 8 7 (16, 21, 19) 9 5 (9, 65, 61) 9 7 (45, 77, 67) 9 8 (63, 80, 73) 10 7 (40, 91, 79) 10 9 (80, 99, 91) 20.1 Integer triangles with a 60◦ angle 709 Exercise 1. A standard calculus exercise asks to cut equal squares of dimension x from the four corners of a rectangle of length a and breadth b so that the box obtained by folding along the creases has a greatest capacity. a x b The answer to this problem is given by a + b √a2 ab + b2 x = − − . 6 How should one choose relatively prime integers a and b so that the resulting x is an integer? 1 For example, when a = 5, b = 8, x =1. Another example is a = 16, b = 21 with x =3. 2. Prove that there is no integer triangle with a 60◦ angle whose adja- cent sides are consecutive integers. Proof. The 60◦ angle being strictly between the other two angles, its opposite side has length strictly between two consecutive inte- gers. It cannot be an integer. 3. Find all integer triangles with a 60◦ angle and two sides consecutive integers. 1Answer: a, b, c, with gcd(p + q, 6) = 3. 710 Integertriangleswitha 60◦ or 120◦ angle 20.2 Integer triangles with a 120◦ angle If triangle ABC has C = 120◦, then c2 = a2 + ab + b2. (20.3) Integer triangles with a 120◦ angle therefore correspond to rational points in the first quadrant on the curve x2 + xy + y2 =1. (20.4) t Q Note that the curve contains the point Q = ( 1, 0). By passing a line of rational slope t through P to intersect the curve− again, we obtain a parametrization of the rational points. Now, such a line has equation y = t(x+1). Solving this simultaneously with (20.2) we obtain (x, y)= ( 1, 0) = Q, and − 1 t2 t(2 + t) Q(t)= − , , t2 + t +1 t2 + t +1 which is in the first quadrant if 0