Chapter 6 of 8 · 4 min · 13 ਸਵਾਲ

Chapter video4:28
Take quiz →

Counting handshakes, lines and triangles

Ten people are in a room, and everyone shakes hands once with everyone else. How many handshakes? The tempting answer is 10 × 9 = 90, because each person meets nine others. It is wrong. A handshake has two people in it, so this sum counts every handshake twice, once from each side. The right answer is 90 ÷ 2 = 45.

Do not count the picture. Ask what makes one of the things you are counting, and then count the ways to choose it.

A handshake is a pair

One handshake needs two people. So the number of handshakes is the number of ways to choose 2 people out of n:

n × (n − 1) ÷ 2

  • 5 people: 5 × 4 ÷ 2 = 10 handshakes.
  • 10 people: 10 × 9 ÷ 2 = 45 handshakes.

Sometimes the question runs backwards. "There were 45 handshakes. How many people?" Double the number: 45 × 2 = 90. Now find two numbers next to each other whose product is 90. They are 10 and 9, so there were 10 people.

Matches: league and knockout

In a league (round-robin), every team plays every other team once. A match is a pair of teams, exactly like a handshake. With 8 teams there are 8 × 7 ÷ 2 = 28 matches.

A knockout is counted differently. A team that loses is out, so every match sends exactly one team home. With 8 teams, 7 have to go home, so there are 7 matches. You can check it round by round: 4 + 2 + 1 = 7. The rule is teams minus one, and it works for any number. UPSC asked this in 2022 with 150 chess players: the answer is 149 matches.

Lines and triangles from points

Two points make a line. So with 6 points, where no three are in one straight line, the number of lines is the number of pairs: 6 × 5 ÷ 2 = 15.

A triangle needs three points. The number of ways to choose 3 out of n is n × (n − 1) × (n − 2) ÷ 6. For 6 points: 6 × 5 × 4 ÷ 6 = 20 triangles.

Now the adjustment. Suppose 3 of the 6 points lie on one straight line.

  • Lines: those 3 points make 3 pairs, but all three pairs give the same line. Take away 3 and add 1: 15 − 3 + 1 = 13 lines.
  • Triangles: those 3 points together make no triangle. Take away 1: 20 − 1 = 19 triangles.

If 4 points lie on one line, the same thinking applies. They make 6 pairs but only 1 line, and they hide 4 sets of three points that make no triangle.

Diagonals come from pairs too. The corners of a hexagon make 15 pairs. Six of those pairs are the sides, so the diagonals are 15 − 6 = 9. For any polygon: pairs of corners, minus the sides.

Rectangles, parallelograms and squares

Take a grid drawn with 4 vertical lines and 3 horizontal lines. Every rectangle is fixed by its two vertical sides and its two horizontal sides. So choose 2 of the vertical lines and 2 of the horizontal lines.

  • 2 out of 4 vertical lines: 4 × 3 ÷ 2 = 6 ways.
  • 2 out of 3 horizontal lines: 3 × 2 ÷ 2 = 3 ways.
  • Rectangles: 6 × 3 = 18. The squares are already counted in these.

If the lines are slanted, the shapes are parallelograms and the count is the same. Four parallel lines crossing another four parallel lines give 6 × 6 = 36 parallelograms. UPSC asked exactly this in 2019.

When a question wants only the squares, count them size by size. In the grid above, which is 3 cells wide and 2 cells high, there are 6 squares of side 1 and 2 squares of side 2: 8 in all. In a board of 3 rows and 3 columns: 9 + 4 + 1 = 14.

Summary

CountingWhat makes oneCount
Handshakes, league matches2 people or 2 teamsn × (n − 1) ÷ 2
Knockout matchesone team removedn − 1
Lines through points2 pointspairs; for points on one line, take away their pairs and add 1
Triangles from points3 pointsn × (n − 1) × (n − 2) ÷ 6, minus the sets of three on one line
Diagonals2 corners that are not neighbourspairs − sides
Rectangles, parallelograms2 lines from each setpairs × pairs
Squares in a gridone size at a timeadd the counts for each size

Where students slip

  • Forgetting to halve. 10 × 9 = 90 counts each handshake twice.
  • Halving when going backwards. For 45 handshakes, double first, then look for 10 × 9.
  • Using the league formula for a knockout. A knockout is always teams minus one.
  • Counting lines instead of cells, or cells instead of lines. A board with 4 lines each way has only 3 cells each way. Read which one the question gives.
  • Counting only the small boxes. Rectangles of every size count.
  • Forgetting the points on one line. They make fewer lines and fewer triangles.
  • Adding squares to the rectangles. A square is a rectangle and is already inside the count.

How to practise

Draw 5 dots, join every pair and count the lines: you should get 10. Then draw a grid 2 cells by 2 cells and list every rectangle by hand. There should be 9, which is 3 × 3. After that, practise only the first step: for each new question, say aloud what makes one of the things being counted.

ਆਪਣੀ ਪੜ੍ਹਾਈ ਸੰਭਾਲੋ ਅਤੇ ਰਾਤ 9 ਵਜੇ ਦਾ ਆਲ ਇੰਡੀਆ ਟੈਸਟ ਦਿਓ।

ਸਾਈਨ ਅੱਪ ਕਰੋ