Lessons / Logical reasoning
Logical reasoning · Day 12

Counting Figures

Count systematically by size: all 1-piece shapes, then all 2-piece shapes, and so on. Or use the formulas below for standard grids.

Exam weightage: LowAbout 0-1 questions per placement paper. Seen most in AMCAT, Capgemini non-verbal. All topics

Why this topic matters

How many triangles are in a triangle with three lines drawn from the top? Most people say 4. The answer is 10, and by the end of today you will be able to prove it.

Counting-figure questions look like 'just look carefully', but careful looking misses shapes. The reliable way is to count in a system, and for the common figures that system becomes a formula. Each formula below is proved step by step, and the computer has checked every one against a direct count.

Label, then count by size

Start with a picture. A triangle has lines drawn from its top corner A down to the base. The lines cut the base into small pieces.

Beginner method: label the points on the base P0, P1, P2 ... Count triangles made of 1 piece, then 2 pieces, then 3, and so on. With 4 pieces: 4 + 3 + 2 + 1 = 10.

Fast method: every triangle in this picture is decided by choosing two points on the base. Choosing 2 of 5 points gives 5C2 = 10.

PQRSTA
Count by size: 4 single pieces, 3 made of two, 2 of three, 1 of four = 10
P0P1P2P3P4A
Pick 2 of the 5 base points (P1, P3) and join them to A: one triangle
Base cut into k pieces (lines from one corner)
Triangles = k + (k - 1) + ... + 1 = k(k + 1)/2
Same thing using points
k pieces means k + 1 base points. Triangles = (k + 1)C2
nC2
Ways to choose 2 things from n = n(n - 1)/2
Why the formula works (proof)
  1. Look at any triangle in the figure. Its sides can only lie on lines from A or on the base.Those are the only lines drawn.
  2. So one corner is A, and the other two corners are on the base.Two sides go down from A and meet the base.
  3. Choose any two base points, say P1 and P3. Join both to A: that is exactly one triangle.See the shaded triangle in the second picture.
  4. So triangles and pairs of base points match one to one.Every triangle gives a pair, every pair gives a triangle.
  5. k pieces give k + 1 base points, and the number of pairs is (k + 1)k/2.nC2 = n(n - 1)/2 with n = k + 1.
  6. Hence proved: triangles = k(k + 1)/2.
Checked by computer
  • ✓ Counting piece by piece equals k(k + 1)/2 for k = 1 to 30
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 1A triangle has 3 lines drawn from the top corner to the base (4 small triangles). How many triangles in total?
  1. The base is cut into k = 4 pieces.3 inside lines make 4 pieces.
  2. By size: 4 + 3 + 2 + 1.Pieces of 1, 2, 3 and 4.
  3. 10.
Example 2From the top corner of a triangle, 5 lines go to the base, not counting the two sides. How many triangles?
  1. 5 inside lines cut the base into 6 pieces.One more piece than lines.
  2. 6 × 7 / 2 = 21.k(k + 1)/2 with k = 6.
  3. 21.
Exam tipCount the inside lines, add 1 to get the pieces k, then k(k + 1)/2.

Squares in a grid

A chessboard has 64 small squares, but also 2 × 2 squares, 3 × 3 squares and so on up to the whole board. The question counts all of them.

Beginner method: count one size at a time. A k × k square is fixed by where its top-left corner sits. In the picture, the dots show every place a 2 × 2 square can start in a 4 × 4 grid: 3 × 3 = 9 places.

Then add the sizes together.

A 2 × 2 square can start at 3 × 3 = 9 corners (dots)
A 3 × 3 square can start at 2 × 2 = 4 corners (dots)
k × k squares in an n × n grid
(n - k + 1)2
All squares in an n × n grid
12 + 22 + ... + n2 = n(n + 1)(2n + 1)/6
All squares in an m × n grid (m ≤ n)
Add (m - k + 1)(n - k + 1) for k = 1 to m
Why the formula works (proof)
  1. A k × k square covers k columns and k rows, so its top-left corner can be in column 1 up to column n - k + 1.Any further right and it falls off the grid.
  2. In the same way the corner can be in row 1 up to row n - k + 1.
  3. Each (row, column) choice gives a different square: (n - k + 1) × (n - k + 1) squares of size k.Count the dots in the picture: 9 for size 2, 4 for size 3.
  4. Sizes go from k = 1 (value n2) to k = n (value 1).So the total is 12 + 22 + ... + n2.
  5. The sum of squares formula: (k + 1)3 - k3 = 3k2 + 3k + 1. Add this for k = 1 to n: the left side collapses to (n + 1)3 - 1.Every middle cube cancels.
  6. So 3(sum of k2) + 3n(n + 1)/2 + n = (n + 1)3 - 1, which simplifies to sum of k2 = n(n + 1)(2n + 1)/6.
  7. Hence proved.
Checked by computer
  • ✓ Direct count of squares (every pair of opposite corners) matches the formula for every grid up to 8 × 8
  • ✓ 12 + ... + n2 = n(n + 1)(2n + 1)/6 for n = 1 to 100
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 1How many squares are there on a chessboard (8 × 8)?
  1. Size 1: 64, size 2: 49, size 3: 36 ... size 8: 1.(8 - k + 1)2 of each size.
  2. 8 × 9 × 17 / 6.The sum formula with n = 8.
  3. 204.
Example 2How many squares are there in a 3 × 4 grid of unit squares?
  1. Size 1: 3 × 4 = 12.
  2. Size 2: 2 × 3 = 6. Size 3: 1 × 2 = 2.(m - k + 1)(n - k + 1).
  3. 12 + 6 + 2 = 20.
Exam tipFor an n × n board, n(n + 1)(2n + 1)/6. For 8 × 8, remember 204.

Rectangles and squares in grids

Every rectangle has a top edge, a bottom edge, a left edge and a right edge. In a grid, the top and bottom lie on two of the horizontal lines, and the left and right lie on two of the vertical lines.

So instead of looking for rectangles, choose lines. A 3 × 4 grid has 4 horizontal lines and 5 vertical lines (always one more line than rows or columns).

4 horizontal lines, 5 vertical lines. Any 2 + any 2 = one rectangle
A different choice of lines gives a different rectangle
Rectangles (squares included) in an m × n grid
(m + 1)C2 × (n + 1)C2
Written out
m(m + 1)/2 × n(n + 1)/2
Rectangles that are NOT squares
All rectangles - all squares
Why the formula works (proof)
  1. Pick any 2 horizontal lines and any 2 vertical lines.The thick lines in the picture.
  2. They cross in exactly 4 points, and those points are the corners of one rectangle.The shaded one.
  3. Going the other way, every rectangle gives back its 2 horizontal and 2 vertical edge lines.So nothing is counted twice and nothing is missed.
  4. Ways to pick 2 of the (m + 1) horizontal lines = (m + 1)C2, and 2 of the (n + 1) vertical lines = (n + 1)C2.
  5. Each pair of horizontal lines can go with each pair of vertical lines, so multiply.Multiplication rule.
  6. Hence proved: rectangles = (m + 1)C2 × (n + 1)C2.
Checked by computer
  • ✓ Direct count (every top-left cell, every height, every width) equals (m + 1)C2 × (n + 1)C2 for every grid up to 10 × 10
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 1How many rectangles (including squares) are there in a 2 × 3 grid of unit squares?
  1. 3 horizontal lines, 4 vertical lines.One more line than rows or columns.
  2. 3C2 × 4C2 = 3 × 6.Pick two of each.
  3. 18.
Example 2How many rectangles in a 4 × 4 grid are NOT squares?
  1. All rectangles: 5C2 × 5C2 = 10 × 10 = 100.
  2. All squares: 1 + 4 + 9 + 16 = 30.Previous section.
  3. 100 - 30 = 70.
Exam tipCount lines, not boxes: lines = boxes + 1 in each direction.

Triangles in a triangle grid

Now the triangle is cut into rows of small triangles, like a pyramid of tiles. Some triangles point up, and some point down (upside-down). Beginners forget the upside-down ones.

Count them in two groups: upright triangles size by size, then upside-down triangles size by size. With 3 rows: upright 6 + 3 + 1 = 10, upside-down 3, total 13.

3 rows: one upright triangle of size 2 (yellow) and one upside-down of size 1 (green)
4 rows: an upside-down triangle of size 2 needs 2 rows above and 2 below
Upright triangles of size k (n rows)
1 + 2 + ... + (n - k + 1)
Upside-down triangles of size k
1 + 2 + ... + (n - 2k + 1), only when 2k ≤ n
Totals for n = 1, 2, 3, 4, 5
1, 5, 13, 27, 48
Why the formula works (proof)
  1. An upright triangle of size k is fixed by its top corner.Once the top is chosen, the rest hangs below it.
  2. Its top corner can be any point in the top n - k + 1 rows of points, and row r has r points.The triangle must still fit above the base.
  3. So upright triangles of size k = 1 + 2 + ... + (n - k + 1).
  4. An upside-down triangle of size k needs k rows above its top edge and k rows from the top edge to its bottom corner.The top edge sits on row k or lower, the bottom corner on row n or higher.
  5. That leaves n - 2k + 1 usable rows, holding 1 + 2 + ... + (n - 2k + 1) positions.Zero when 2k > n.
  6. Add both groups for every size. Hence proved.
Checked by computer
  • ✓ Testing every triple of grid points by computer gives the same totals as the formula for n = 1 to 8
  • ✓ The totals for n = 1 to 5 are 1, 5, 13, 27, 48
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 1A triangle is split into 3 rows of small triangles (9 small ones). How many triangles in total?
  1. Upright: size 1: 6, size 2: 3, size 3: 1 = 10.1 + 2 + 3, then 1 + 2, then 1.
  2. Upside-down: size 1: 3.Size 2 needs 4 rows.
  3. 10 + 3 = 13.
Example 2A triangle is split into 4 rows of small triangles (16 small ones). How many triangles in total?
  1. Upright: 10 + 6 + 3 + 1 = 20.Sizes 1 to 4.
  2. Upside-down: size 1: 1 + 2 + 3 = 6, size 2: 1.2k ≤ 4 allows k = 1, 2.
  3. 20 + 7 = 27.
Exam tipLearn 1, 5, 13, 27, 48. Examiners love 4 rows = 27.

Mixed figures: triangles inside rectangles

When the figure is not a standard grid, there is no single formula. Use the labelling method: put a letter on every corner and crossing point, then list triangles by how many small pieces they use.

Rectangle with both diagonals: 4 small triangles meet at the centre, and each diagonal cuts the rectangle into 2 big triangles, so 4 more. Total 8.

Rectangle + 2 diagonals: 4 small (yellow shows one) + 4 made of two pieces (green shows one) = 8
Square + diagonals + midlines: 8 small + 4 of two pieces + 4 half-squares (green) = 16
Rectangle with both diagonals
8 triangles
Square with both diagonals and both midlines
16 triangles
Any figure
Label points, count by number of pieces, never skip a size
Why the formula works (proof)
  1. Rectangle: the diagonals cross at the centre O, making 4 small triangles.Size 1 = 4.
  2. Two neighbouring small triangles share a half-diagonal, and together they form a triangle whose third side is a full diagonal: 4 such pairs.Size 2 = 4.
  3. Three small pieces never make a triangle (they make a shape with 4 corners), and all four make the rectangle.Sizes 3 and 4 = 0.
  4. 4 + 4 = 8.
  5. For the square with midlines: 8 small, 4 made of two pieces, 4 half-squares = 16.Same steps, one more line in each direction.
  6. Hence proved.
Checked by computer
  • ✓ Computer test of every triple of points in the rectangle figure finds 8 triangles
  • ✓ Computer test of every triple of points in the square figure finds 16 triangles
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 1A rectangle is divided by its two diagonals. How many triangles are there?
  1. 4 small triangles meet at the centre.
  2. Each pair of neighbouring small triangles makes a larger triangle: 4 more.Two adjacent pieces share a side along a diagonal.
  3. 8.
Example 2A square has both diagonals and the two lines joining midpoints of opposite sides. How many triangles?
  1. Smallest: the 8 thin triangles around the centre.Label them first.
  2. Two small ones side by side make a triangle with one full side of the square as base: 4 of these.Corner, corner, centre.
  3. Four small ones make half the square, cut by a diagonal: 4 of these.
  4. 8 + 4 + 4 = 16.
Exam tipWrite the list on paper (AOB, BOC ...). If you only count in your head, you will miss or repeat one.

Points, lines and diagonals

Some questions give points instead of a drawing: 'there are 8 points and no three are on one line; how many triangles?'

A straight line needs 2 points and a triangle needs 3 points. If no three points are on one line, every choice of 3 points makes a real triangle.

123456
6 points: any 3 of them make a triangle. 6C3 = 20
12345
5 points: 5C2 = 10 lines. 5 are sides of the pentagon, 5 are diagonals
Straight lines through n points (no three on a line)
nC2 = n(n - 1)/2
Triangles from n points (no three on a line)
nC3 = n(n - 1)(n - 2)/6
Diagonals of an n-sided polygon
n(n - 3)/2
Why the formula works (proof)
  1. A line is fixed by any 2 of the points, and different pairs give different lines because no three points share a line.So lines = nC2.
  2. A triangle is fixed by its 3 corners, and 3 points not on a line always make one.So triangles = nC3.
  3. Diagonals: each corner of the polygon joins to n - 1 other corners. 2 of those joins are sides, so n - 3 are diagonals.
  4. n corners × (n - 3) counts every diagonal twice, once from each end.Divide by 2.
  5. Hence proved: diagonals = n(n - 3)/2.
Checked by computer
  • ✓ Direct count of non-side pairs equals n(n - 3)/2 for polygons with 4 to 30 sides
  • ✓ Listing every triple of 6 points gives 20 = 6C3
These are tested again every time the site is built. If one ever failed, the site would not publish.
Example 18 points, no three on a line. How many triangles can be drawn using them as corners?
  1. Any 3 points make a triangle.No three are on one line.
  2. 8C3 = 8 × 7 × 6 / 6.
  3. 56.
Example 2How many diagonals does a hexagon have?
  1. Each of the 6 corners has 6 - 3 = 3 diagonals.
  2. 6 × 3 = 18 counts each diagonal twice.
  3. 9.
Exam tipLines = nC2, triangles = nC3, diagonals = nC2 - n.

Formula sheet: every shape

One table for revision. Every row was proved in a section above, and each number in the Example column comes from a brute-force count by the computer, not from the formula.

Read the shape, find what you are counting, apply the formula, and compare with the worked number.

PQRSTA
Lines from one corner
Lines from one corner + 1 line across
Grid of unit squares
Triangle cut into rows
Rectangle + diagonals
Square + diagonals + midlines
123456
Points with no three on a line
ShapeCountingFormulaExample
Triangle, lines from one corner, base in k piecesTrianglesk(k + 1)/2k = 4: 10
Same, plus c lines across parallel to the baseTriangles(c + 1) × k(k + 1)/2k = 4, c = 1: 20
n × n gridSquaresn(n + 1)(2n + 1)/68 × 8: 204
m × n gridSquaresadd (m - k + 1)(n - k + 1)3 × 4: 20
m × n gridRectangles (squares included)(m + 1)C2 × (n + 1)C23 × 4: 60
m × n gridRectangles that are not squaresrectangles - squares4 × 4: 70
Triangle cut into n rowsTriangles (up + upside-down)1, 5, 13, 27, 48 for n = 1 to 54 rows: 27
Rectangle + both diagonalsTriangles88
Square + diagonals + both midlinesTriangles1616
n points, no three on a lineStraight linesnC28 points: 28
n points, no three on a lineTrianglesnC38 points: 56
Polygon with n sidesDiagonalsn(n - 3)/2hexagon: 9
n × n × n cubeCubes of all sizes13 + 23 + ... + n3 = (n(n + 1)/2)23 × 3 × 3: 36
Lines
boxes + 1 in each direction
nC2
n(n - 1)/2
nC3
n(n - 1)(n - 2)/6
Why the formula works (proof)
  1. Rows 1 and 3 to 12 are proved in the sections above.Each section ends with its own proof.
  2. Lines across: each of the c + 1 horizontal lines (base included) works like its own base with the same k pieces, so the apex count repeats c + 1 times.
  3. Cube row: a k × k × k cube is fixed by its front-top-left corner, which has (n - k + 1) places along each of the 3 directions.The same corner idea as squares, in 3D.
  4. So there are (n - k + 1)3 cubes of size k, and adding k = 1 to n gives 13 + ... + n3.
  5. Hence proved.
Checked by computer
  • ✓ 13 + ... + n3 = (n(n + 1)/2)2 for n = 1 to 100
  • ✓ Squares formula n(n + 1)(2n + 1)/6 gives 204 for 8 × 8, the same as the brute-force count
  • ✓ Rectangles formula gives 60 for 3 × 4, the same as the brute-force count
These are tested again every time the site is built. If one ever failed, the site would not publish.

Formula summary

Squares in an n × n grid
12 + 22 + ... + n2 = n(n + 1)(2n + 1)/6.
Rectangles in an m × n grid
C(m + 1, 2) × C(n + 1, 2).
Triangle with n lines from one vertex to the base
n(n + 1)/2 triangles (n lines including sides).
Triangles in a triangle divided into n rows (all upright + inverted)
For n = 1, 2, 3, 4: 1, 5, 13, 27.

Shortcuts and tricks

Squares in a chessboard

Use it when: 8 × 8.

  1. 1 + 4 + 9 + ... + 64 = 204.
ExampleSquares on a chessboard?
  1. 8 × 9 × 17 / 6.

Before you move on, you should be able to...

  • prove the apex formula by pairing triangles with base points
  • count squares by where the top-left corner sits
  • count rectangles by choosing 2 + 2 lines
  • count upright and upside-down triangles separately
  • label every point before counting a mixed figure
  • use nC2, nC3 and n(n - 3)/2 for points and polygons

Practice questions (22)

Try each one before opening the solution. Or practise them one by one so your score is saved.

Squares in grids

easy How many squares are there in a 4 × 4 grid of unit squares?
4 × 4 board: the dots are where a 2 × 2 square can start
  1. Formula: squares of size k in an m × n grid = (m - k + 1) × (n - k + 1). Add for every size k up to the shorter side.A k × k square is fixed by its top-left corner.
  2. Here m = 4, n = 4.
  3. k = 1: (4 - 1 + 1) × (4 - 1 + 1) = 4 × 4 = 16
  4. k = 2: (4 - 2 + 1) × (4 - 2 + 1) = 3 × 3 = 9
  5. k = 3: (4 - 3 + 1) × (4 - 3 + 1) = 2 × 2 = 4
  6. k = 4: (4 - 4 + 1) × (4 - 4 + 1) = 1 × 1 = 1
  7. Total = 16 + 9 + 4 + 1 = 30.
  8. Check with n(n + 1)(2n + 1)/6 = 4 × 5 × 9/6 = 30.

Answer: 30

medium How many squares are there in a 2 × 5 grid of unit squares?
2 × 5 grid of unit squares
  1. Formula: squares of size k in an m × n grid = (m - k + 1) × (n - k + 1). Add for every size k up to the shorter side.A k × k square is fixed by its top-left corner.
  2. Here m = 2, n = 5.
  3. k = 1: (2 - 1 + 1) × (5 - 1 + 1) = 2 × 5 = 10
  4. k = 2: (2 - 2 + 1) × (5 - 2 + 1) = 1 × 4 = 4
  5. Total = 10 + 4 = 14.

Answer: 14

hard How many squares are there in a 4 × 6 grid of unit squares?
4 × 6 grid of unit squares
  1. Formula: squares of size k in an m × n grid = (m - k + 1) × (n - k + 1). Add for every size k up to the shorter side.A k × k square is fixed by its top-left corner.
  2. Here m = 4, n = 6.
  3. k = 1: (4 - 1 + 1) × (6 - 1 + 1) = 4 × 6 = 24
  4. k = 2: (4 - 2 + 1) × (6 - 2 + 1) = 3 × 5 = 15
  5. k = 3: (4 - 3 + 1) × (6 - 3 + 1) = 2 × 4 = 8
  6. k = 4: (4 - 4 + 1) × (6 - 4 + 1) = 1 × 3 = 3
  7. Total = 24 + 15 + 8 + 3 = 50.

Answer: 50

hard On an 8 × 8 board, how many squares are bigger than 1 × 1?
8 × 8 board: the dots are where a 2 × 2 square can start
  1. Formula: squares of size k in an m × n grid = (m - k + 1) × (n - k + 1). Add for every size k up to the shorter side.A k × k square is fixed by its top-left corner.
  2. Here m = 8, n = 8, and size k = 1 is left out.
  3. k = 2: (8 - 2 + 1) × (8 - 2 + 1) = 7 × 7 = 49
  4. k = 3: (8 - 3 + 1) × (8 - 3 + 1) = 6 × 6 = 36
  5. k = 4: (8 - 4 + 1) × (8 - 4 + 1) = 5 × 5 = 25
  6. k = 5: (8 - 5 + 1) × (8 - 5 + 1) = 4 × 4 = 16
  7. k = 6: (8 - 6 + 1) × (8 - 6 + 1) = 3 × 3 = 9
  8. k = 7: (8 - 7 + 1) × (8 - 7 + 1) = 2 × 2 = 4
  9. k = 8: (8 - 8 + 1) × (8 - 8 + 1) = 1 × 1 = 1
  10. Total = 49 + 36 + 25 + 16 + 9 + 4 + 1 = 140.

Answer: 140

Rectangles in grids

easy How many rectangles (squares included) are there in a 2 × 4 grid?
2 × 4 grid: pick 2 of 3 horizontal and 2 of 5 vertical lines
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.Any 2 horizontal lines and any 2 vertical lines box in one rectangle.
  2. Here m = 2, n = 4: 3 horizontal lines and 5 vertical lines.Lines = boxes + 1.
  3. Substitute: 3C2 × 5C2 = (3 × 2/2) × (5 × 4/2) = 3 × 10 = 30.

Answer: 30

medium How many rectangles (squares included) are there in a 3 × 6 grid?
3 × 6 grid: pick 2 of 4 horizontal and 2 of 7 vertical lines
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.Any 2 horizontal lines and any 2 vertical lines box in one rectangle.
  2. Here m = 3, n = 6: 4 horizontal lines and 7 vertical lines.Lines = boxes + 1.
  3. Substitute: 4C2 × 7C2 = (4 × 3/2) × (7 × 6/2) = 6 × 21 = 126.

Answer: 126

medium How many rectangles (squares included) are there in a 3 × 5 grid?
3 × 5 grid: pick 2 of 4 horizontal and 2 of 6 vertical lines
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.Any 2 horizontal lines and any 2 vertical lines box in one rectangle.
  2. Here m = 3, n = 5: 4 horizontal lines and 6 vertical lines.Lines = boxes + 1.
  3. Substitute: 4C2 × 6C2 = (4 × 3/2) × (6 × 5/2) = 6 × 15 = 90.

Answer: 90

hard How many rectangles in a 5 × 5 grid are NOT squares?
5 × 5 grid: pick 2 of 6 horizontal and 2 of 6 vertical lines
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.Any 2 horizontal lines and any 2 vertical lines box in one rectangle.
  2. Here m = 5, n = 5: 6 horizontal lines and 6 vertical lines.Lines = boxes + 1.
  3. Substitute: 6C2 × 6C2 = (6 × 5/2) × (6 × 5/2) = 15 × 15 = 225.
  4. Squares: n(n + 1)(2n + 1)/6 = 5 × 6 × 11/6 = 55.
  5. Rectangles that are not squares = 225 - 55 = 170.

Answer: 170

Lines from one corner

easy From the top corner of a triangle, 2 lines are drawn to the base (not counting the two sides). How many triangles are there?
P0P1P2P3A
2 lines from the top: base in 3 pieces, 4 base points
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles.Each triangle = the corner + 2 points on one horizontal line.
  2. Here 2 inside lines cut the base into k = 3 pieces.Pieces = inside lines + 1.
  3. Substitute: 3 × 4/2 = 6.
  4. Check by size: 3 + 2 + 1 = 6 per horizontal line.

Answer: 6

medium From the top corner of a triangle, 6 lines are drawn to the base (not counting the two sides). How many triangles are there?
P0P1P2P3P4P5P6P7A
6 lines from the top: base in 7 pieces, 8 base points
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles.Each triangle = the corner + 2 points on one horizontal line.
  2. Here 6 inside lines cut the base into k = 7 pieces.Pieces = inside lines + 1.
  3. Substitute: 7 × 8/2 = 28.
  4. Check by size: 7 + 6 + 5 + 4 + 3 + 2 + 1 = 28 per horizontal line.

Answer: 28

hard From the top corner of a triangle, 3 lines are drawn to the base (not counting the two sides), and 1 line is drawn across, parallel to the base. How many triangles are there?
3 lines from the top, base in 4 pieces, 1 across
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles for each horizontal line; with c lines across there are c + 1 such lines, so (c + 1) × k(k + 1)/2.Each triangle = the corner + 2 points on one horizontal line.
  2. Here 3 inside lines cut the base into k = 4 pieces, and c = 1.Pieces = inside lines + 1.
  3. Substitute: (1 + 1) × 4 × 5/2 = 2 × 10 = 20.
  4. Check by size: 4 + 3 + 2 + 1 = 10 per horizontal line.

Answer: 20

advanced From the top corner of a triangle, 3 lines are drawn to the base (not counting the two sides), and 2 lines are drawn across, parallel to the base. How many triangles are there?
3 lines from the top, base in 4 pieces, 2 across
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles for each horizontal line; with c lines across there are c + 1 such lines, so (c + 1) × k(k + 1)/2.Each triangle = the corner + 2 points on one horizontal line.
  2. Here 3 inside lines cut the base into k = 4 pieces, and c = 2.Pieces = inside lines + 1.
  3. Substitute: (2 + 1) × 4 × 5/2 = 3 × 10 = 30.
  4. Check by size: 4 + 3 + 2 + 1 = 10 per horizontal line.

Answer: 30

Triangle grids

easy A triangle is cut into 2 rows of small triangles. How many triangles are there in all (upright and upside-down)?
2 rows of small triangles
  1. Formula: upright triangles of size k = 1 + 2 + ... + (n - k + 1); upside-down of size k = 1 + 2 + ... + (n - 2k + 1) when 2k ≤ n.Upright ones are fixed by their top corner, upside-down ones need rows above and below.
  2. Here n = 2 rows.
  3. Upright: size 1: 3, size 2: 1 → 4.
  4. Upside-down: size 1: 1 → 1.
  5. Total = 4 + 1 = 5.

Answer: 5

hard A triangle is cut into 5 rows of small triangles. How many triangles are there in all (upright and upside-down)?
5 rows of small triangles
  1. Formula: upright triangles of size k = 1 + 2 + ... + (n - k + 1); upside-down of size k = 1 + 2 + ... + (n - 2k + 1) when 2k ≤ n.Upright ones are fixed by their top corner, upside-down ones need rows above and below.
  2. Here n = 5 rows.
  3. Upright: size 1: 15, size 2: 10, size 3: 6, size 4: 3, size 5: 1 → 35.
  4. Upside-down: size 1: 10, size 2: 3 → 13.
  5. Total = 35 + 13 = 48.

Answer: 48

advanced A triangle is cut into 6 rows of small triangles. How many triangles are there in all (upright and upside-down)?
6 rows of small triangles
  1. Formula: upright triangles of size k = 1 + 2 + ... + (n - k + 1); upside-down of size k = 1 + 2 + ... + (n - 2k + 1) when 2k ≤ n.Upright ones are fixed by their top corner, upside-down ones need rows above and below.
  2. Here n = 6 rows.
  3. Upright: size 1: 21, size 2: 15, size 3: 10, size 4: 6, size 5: 3, size 6: 1 → 56.
  4. Upside-down: size 1: 15, size 2: 6, size 3: 1 → 22.
  5. Total = 56 + 22 = 78.

Answer: 78

Points and polygons

easy 10 points, no three on one line. How many straight lines can be drawn through pairs of them?
12345678910
10 points: every pair makes one line
  1. Formula: lines = nC2 = n(n - 1)/2.A line is fixed by 2 points.
  2. Here n = 10.
  3. Substitute: 10 × 9/2 = 45.

Answer: 45

medium 7 points, no three on one line. How many triangles can be formed?
1234567
7 points: one of the 35 triangles
  1. Formula: triangles = nC3 = n(n - 1)(n - 2)/6.Any 3 points not on a line make a triangle.
  2. Here n = 7.
  3. Substitute: 7 × 6 × 5/6 = 35.

Answer: 35

medium How many diagonals does an octagon have?
12345678
Octagon: 8 corners, every dashed line that is not a side is a diagonal
  1. Formula: diagonals = n(n - 3)/2.Each corner joins n - 3 others by a diagonal; each diagonal has two ends.
  2. Here n = 8.
  3. Substitute: 8 × 5/2 = 20.

Answer: 20

advanced Triangles are made from the corners of a regular octagon. How many have NO side in common with the octagon?
12345678
One triangle that shares no side with the octagon
  1. Formula: triangles with no shared side = all triangles - (one side shared) - (two sides shared).Count what you do not want and subtract.
  2. All triangles: 8C3 = 56.Any 3 corners.
  3. Two sides shared: 3 corners in a row. There are 8 such runs.Start the run at any of the 8 corners.
  4. Exactly one side shared: pick a side (8 ways), then a third corner not next to either end: 8 - 4 = 4 ways. 8 × 4 = 32.The 2 ends and their 2 neighbours are ruled out.
  5. Substitute: 56 - 8 - 32 = 16.

Answer: 16

Mixed figures

easy A triangle has one line from the top corner to the middle of the base and one line across the middle. How many triangles?
Count the triangles
  1. Method: Each horizontal line with the top corner makes triangles; count by size.No single formula fits this figure, so count by size.
  2. Label every corner and crossing point: 7 points.
  3. Size 1 (smallest): 2
  4. Size 2 (2 times the smallest): 1
  5. Size 3 (4 times the smallest): 2
  6. Size 4 (8 times the smallest): 1
  7. Total = 2 + 1 + 2 + 1 = 6.

Answer: 6

medium A regular hexagon has its 3 long diagonals drawn. How many triangles are there?
Count the triangles
  1. Method: The long diagonals meet at the centre; check whether pieces combine into bigger triangles.No single formula fits this figure, so count by size.
  2. Label every corner and crossing point: 7 points.
  3. Size 1 (smallest): 6
  4. Total = 6 = 6.

Answer: 6

hard A rectangle has both diagonals and a vertical line through the middle. How many triangles?
Count the triangles
  1. Method: Label, then count by size; the middle line creates new triangles with the diagonals.No single formula fits this figure, so count by size.
  2. Label every corner and crossing point: 7 points.
  3. Size 1 (smallest): 4
  4. Size 2 (2 times the smallest): 4
  5. Size 3 (4 times the smallest): 4
  6. Total = 4 + 4 + 4 = 12.

Answer: 12

Class plan (2 hours, for trainers)

A tested order for teaching this topic in one 2-hour session. Present mode follows the same order.

10 minWarm-up: ask the class how many triangles they see. Collect guesses.
20 minLabel, then count by size; prove k(k + 1)/2.
20 minSquares in a grid with the dot picture; the chessboard.
20 minRectangles by choosing lines.
15 minTriangle grid: upright and upside-down.
10 minMixed figures and points.
20 minPractice set.
5 minRecap.