Counting Figures Exit
Logical reasoning

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.

Start with this

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

Label, then count by size: the rules

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 it works: Label, then count by size

  1. Look at any triangle in the figure. Its sides can only lie on lines from A or on the base.
    Why: Those are the only lines drawn.
  2. So one corner is A, and the other two corners are on the base.
    Why: 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.
    Why: See the shaded triangle in the second picture.
  4. So triangles and pairs of base points match one to one.
    Why: 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.
    Why: nC2 = n(n - 1)/2 with n = k + 1.
  6. Hence proved: triangles = k(k + 1)/2.
P0P1P2P3P4A
Pick 2 of the 5 base points (P1, P3) and join them to A: one triangle

Checked by computer

Worked example: Label, then count by size

A 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.
    Why: 3 inside lines make 4 pieces.
  2. By size: 4 + 3 + 2 + 1.
    Why: Pieces of 1, 2, 3 and 4.
  3. 10.

Answer: 10

PQRSTA
Count by size: 4 single pieces, 3 made of two, 2 of three, 1 of four = 10

Worked example: Label, then count by size

From 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.
    Why: One more piece than lines.
  2. 6 × 7 / 2 = 21.
    Why: k(k + 1)/2 with k = 6.
  3. 21.

Answer: 21

PQRSTA
Count by size: 4 single pieces, 3 made of two, 2 of three, 1 of four = 10

Exam tip

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)

Squares in a grid: the rules

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 it works: Squares in a grid

  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.
    Why: 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.
    Why: 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).
    Why: 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.
    Why: 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.
A 3 × 3 square can start at 2 × 2 = 4 corners (dots)

Checked by computer

Worked example: Squares in a grid

How many squares are there on a chessboard (8 × 8)?

  1. Size 1: 64, size 2: 49, size 3: 36 ... size 8: 1.
    Why: (8 - k + 1)2 of each size.
  2. 8 × 9 × 17 / 6.
    Why: The sum formula with n = 8.
  3. 204.

Answer: 204

A 2 × 2 square can start at 3 × 3 = 9 corners (dots)

Worked example: Squares in a grid

How 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.
    Why: (m - k + 1)(n - k + 1).
  3. 12 + 6 + 2 = 20.

Answer: 20

A 2 × 2 square can start at 3 × 3 = 9 corners (dots)

Exam tip

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 and squares in grids: the rules

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 it works: Rectangles and squares in grids

  1. Pick any 2 horizontal lines and any 2 vertical lines.
    Why: The thick lines in the picture.
  2. They cross in exactly 4 points, and those points are the corners of one rectangle.
    Why: The shaded one.
  3. Going the other way, every rectangle gives back its 2 horizontal and 2 vertical edge lines.
    Why: 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.
    Why: Multiplication rule.
  6. Hence proved: rectangles = (m + 1)C2 × (n + 1)C2.
A different choice of lines gives a different rectangle

Checked by computer

Worked example: Rectangles and squares in grids

How many rectangles (including squares) are there in a 2 × 3 grid of unit squares?

  1. 3 horizontal lines, 4 vertical lines.
    Why: One more line than rows or columns.
  2. 3C2 × 4C2 = 3 × 6.
    Why: Pick two of each.
  3. 18.

Answer: 18

4 horizontal lines, 5 vertical lines. Any 2 + any 2 = one rectangle

Worked example: Rectangles and squares in grids

How 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.
    Why: Previous section.
  3. 100 - 30 = 70.

Answer: 70

4 horizontal lines, 5 vertical lines. Any 2 + any 2 = one rectangle

Exam tip

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

Triangles in a triangle grid: the rules

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 it works: Triangles in a triangle grid

  1. An upright triangle of size k is fixed by its top corner.
    Why: 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.
    Why: 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.
    Why: 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.
    Why: Zero when 2k > n.
  6. Add both groups for every size. Hence proved.
4 rows: an upside-down triangle of size 2 needs 2 rows above and 2 below

Checked by computer

Worked example: Triangles in a triangle grid

A 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.
    Why: 1 + 2 + 3, then 1 + 2, then 1.
  2. Upside-down: size 1: 3.
    Why: Size 2 needs 4 rows.
  3. 10 + 3 = 13.

Answer: 13

3 rows: one upright triangle of size 2 (yellow) and one upside-down of size 1 (green)

Worked example: Triangles in a triangle grid

A triangle is split into 4 rows of small triangles (16 small ones). How many triangles in total?

  1. Upright: 10 + 6 + 3 + 1 = 20.
    Why: Sizes 1 to 4.
  2. Upside-down: size 1: 1 + 2 + 3 = 6, size 2: 1.
    Why: 2k ≤ 4 allows k = 1, 2.
  3. 20 + 7 = 27.

Answer: 27

3 rows: one upright triangle of size 2 (yellow) and one upside-down of size 1 (green)

Exam tip

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

Mixed figures: triangles inside rectangles: the rules

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 it works: Mixed figures: triangles inside rectangles

  1. Rectangle: the diagonals cross at the centre O, making 4 small triangles.
    Why: 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.
    Why: Size 2 = 4.
  3. Three small pieces never make a triangle (they make a shape with 4 corners), and all four make the rectangle.
    Why: 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.
    Why: Same steps, one more line in each direction.
  6. Hence proved.
Square + diagonals + midlines: 8 small + 4 of two pieces + 4 half-squares (green) = 16

Checked by computer

Worked example: Mixed figures: triangles inside rectangles

A 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.
    Why: Two adjacent pieces share a side along a diagonal.
  3. 8.

Answer: 8

Rectangle + 2 diagonals: 4 small (yellow shows one) + 4 made of two pieces (green shows one) = 8

Worked example: Mixed figures: triangles inside rectangles

A 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.
    Why: 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.
    Why: Corner, corner, centre.
  3. Four small ones make half the square, cut by a diagonal: 4 of these.
  4. 8 + 4 + 4 = 16.

Answer: 16

Rectangle + 2 diagonals: 4 small (yellow shows one) + 4 made of two pieces (green shows one) = 8

Exam tip

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

Points, lines and diagonals: the rules

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 it works: Points, lines and diagonals

  1. A line is fixed by any 2 of the points, and different pairs give different lines because no three points share a line.
    Why: So lines = nC2.
  2. A triangle is fixed by its 3 corners, and 3 points not on a line always make one.
    Why: 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.
    Why: Divide by 2.
  5. Hence proved: diagonals = n(n - 3)/2.
12345
5 points: 5C2 = 10 lines. 5 are sides of the pentagon, 5 are diagonals

Checked by computer

Worked example: Points, lines and diagonals

8 points, no three on a line. How many triangles can be drawn using them as corners?

  1. Any 3 points make a triangle.
    Why: No three are on one line.
  2. 8C3 = 8 × 7 × 6 / 6.
  3. 56.

Answer: 56

123456
6 points: any 3 of them make a triangle. 6C3 = 20

Worked example: Points, lines and diagonals

How 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.

Answer: 9

123456
6 points: any 3 of them make a triangle. 6C3 = 20

Exam tip

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

Formula sheet: every shape: reference

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

Formula sheet: every shape: the rules

Lines
boxes + 1 in each direction
nC2
n(n - 1)/2
nC3
n(n - 1)(n - 2)/6

Why it works: Formula sheet: every shape

  1. Rows 1 and 3 to 12 are proved in the sections above.
    Why: 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.
    Why: 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.
123456
Points with no three on a line

Checked by computer

Shortcut: Squares in a chessboard

Use it when: 8 × 8.

  1. 1 + 4 + 9 + ... + 64 = 204.

Squares in a chessboard: try it

Squares on a chessboard?

  1. 8 × 9 × 17 / 6.

Answer: 204

Practice group

Squares in grids

4 questions, easy to hard. Say the formula first, then substitute.

Practice 1 of 22 easy

How many squares are there in a 4 × 4 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)

Try it first. Next slide shows the solution step by step.

4 × 4 board: the dots are where a 2 × 2 square can start

Solution 1 easy

How many squares are there in a 4 × 4 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)
  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.
    Why: 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

4 × 4 board: the dots are where a 2 × 2 square can start

Practice 2 of 22 medium

How many squares are there in a 2 × 5 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)

Try it first. Next slide shows the solution step by step.

2 × 5 grid of unit squares

Solution 2 medium

How many squares are there in a 2 × 5 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)
  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.
    Why: 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

2 × 5 grid of unit squares

Practice 3 of 22 hard

How many squares are there in a 4 × 6 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)

Try it first. Next slide shows the solution step by step.

4 × 6 grid of unit squares

Solution 3 hard

How many squares are there in a 4 × 6 grid of unit squares?

FormulaSquares of size k = (m - k + 1)(n - k + 1)
  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.
    Why: 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

4 × 6 grid of unit squares

Practice 4 of 22 hard

On an 8 × 8 board, how many squares are bigger than 1 × 1?

FormulaSquares of size k = (m - k + 1)(n - k + 1)

Try it first. Next slide shows the solution step by step.

8 × 8 board: the dots are where a 2 × 2 square can start

Solution 4 hard

On an 8 × 8 board, how many squares are bigger than 1 × 1?

FormulaSquares of size k = (m - k + 1)(n - k + 1)
  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.
    Why: 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

8 × 8 board: the dots are where a 2 × 2 square can start
Practice group

Rectangles in grids

4 questions, easy to hard. Say the formula first, then substitute.

Practice 5 of 22 easy

How many rectangles (squares included) are there in a 2 × 4 grid?

Formula(m + 1)C2 × (n + 1)C2

Try it first. Next slide shows the solution step by step.

2 × 4 grid: pick 2 of 3 horizontal and 2 of 5 vertical lines

Solution 5 easy

How many rectangles (squares included) are there in a 2 × 4 grid?

Formula(m + 1)C2 × (n + 1)C2
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.
    Why: 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.
    Why: Lines = boxes + 1.
  3. Substitute: 3C2 × 5C2 = (3 × 2/2) × (5 × 4/2) = 3 × 10 = 30.

Answer: 30

2 × 4 grid: pick 2 of 3 horizontal and 2 of 5 vertical lines

Practice 6 of 22 medium

How many rectangles (squares included) are there in a 3 × 6 grid?

Formula(m + 1)C2 × (n + 1)C2

Try it first. Next slide shows the solution step by step.

3 × 6 grid: pick 2 of 4 horizontal and 2 of 7 vertical lines

Solution 6 medium

How many rectangles (squares included) are there in a 3 × 6 grid?

Formula(m + 1)C2 × (n + 1)C2
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.
    Why: 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.
    Why: Lines = boxes + 1.
  3. Substitute: 4C2 × 7C2 = (4 × 3/2) × (7 × 6/2) = 6 × 21 = 126.

Answer: 126

3 × 6 grid: pick 2 of 4 horizontal and 2 of 7 vertical lines

Practice 7 of 22 medium

How many rectangles (squares included) are there in a 3 × 5 grid?

Formula(m + 1)C2 × (n + 1)C2

Try it first. Next slide shows the solution step by step.

3 × 5 grid: pick 2 of 4 horizontal and 2 of 6 vertical lines

Solution 7 medium

How many rectangles (squares included) are there in a 3 × 5 grid?

Formula(m + 1)C2 × (n + 1)C2
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.
    Why: 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.
    Why: Lines = boxes + 1.
  3. Substitute: 4C2 × 6C2 = (4 × 3/2) × (6 × 5/2) = 6 × 15 = 90.

Answer: 90

3 × 5 grid: pick 2 of 4 horizontal and 2 of 6 vertical lines

Practice 8 of 22 hard

How many rectangles in a 5 × 5 grid are NOT squares?

Formula(m + 1)C2 × (n + 1)C2; then subtract the squares

Try it first. Next slide shows the solution step by step.

5 × 5 grid: pick 2 of 6 horizontal and 2 of 6 vertical lines

Solution 8 hard

How many rectangles in a 5 × 5 grid are NOT squares?

Formula(m + 1)C2 × (n + 1)C2; then subtract the squares
  1. Formula: rectangles (squares included) in an m × n grid = (m + 1)C2 × (n + 1)C2.
    Why: 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.
    Why: 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

5 × 5 grid: pick 2 of 6 horizontal and 2 of 6 vertical lines
Practice group

Lines from one corner

4 questions, easy to hard. Say the formula first, then substitute.

Practice 9 of 22 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?

Formulak(k + 1)/2 per horizontal line

Try it first. Next slide shows the solution step by step.

P0P1P2P3A
2 lines from the top: base in 3 pieces, 4 base points

Solution 9 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?

Formulak(k + 1)/2 per horizontal line
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles.
    Why: Each triangle = the corner + 2 points on one horizontal line.
  2. Here 2 inside lines cut the base into k = 3 pieces.
    Why: Pieces = inside lines + 1.
  3. Substitute: 3 × 4/2 = 6.
  4. Check by size: 3 + 2 + 1 = 6 per horizontal line.

Answer: 6

P0P1P2P3A
2 lines from the top: base in 3 pieces, 4 base points

Practice 10 of 22 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?

Formulak(k + 1)/2 per horizontal line

Try it first. Next slide shows the solution step by step.

P0P1P2P3P4P5P6P7A
6 lines from the top: base in 7 pieces, 8 base points

Solution 10 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?

Formulak(k + 1)/2 per horizontal line
  1. Formula: base cut into k pieces gives k(k + 1)/2 triangles.
    Why: Each triangle = the corner + 2 points on one horizontal line.
  2. Here 6 inside lines cut the base into k = 7 pieces.
    Why: 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

P0P1P2P3P4P5P6P7A
6 lines from the top: base in 7 pieces, 8 base points

Practice 11 of 22 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?

Formulak(k + 1)/2 per horizontal line

Try it first. Next slide shows the solution step by step.

3 lines from the top, base in 4 pieces, 1 across

Solution 11 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?

Formulak(k + 1)/2 per horizontal line
  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.
    Why: 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.
    Why: 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

3 lines from the top, base in 4 pieces, 1 across

Practice 12 of 22 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?

Formulak(k + 1)/2 per horizontal line

Try it first. Next slide shows the solution step by step.

3 lines from the top, base in 4 pieces, 2 across

Solution 12 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?

Formulak(k + 1)/2 per horizontal line
  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.
    Why: 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.
    Why: 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

3 lines from the top, base in 4 pieces, 2 across
Practice group

Triangle grids

3 questions, easy to hard. Say the formula first, then substitute.

Practice 13 of 22 easy

A triangle is cut into 2 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size

Try it first. Next slide shows the solution step by step.

2 rows of small triangles

Solution 13 easy

A triangle is cut into 2 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size
  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.
    Why: 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

2 rows of small triangles

Practice 14 of 22 hard

A triangle is cut into 5 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size

Try it first. Next slide shows the solution step by step.

5 rows of small triangles

Solution 14 hard

A triangle is cut into 5 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size
  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.
    Why: 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

5 rows of small triangles

Practice 15 of 22 advanced

A triangle is cut into 6 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size

Try it first. Next slide shows the solution step by step.

6 rows of small triangles

Solution 15 advanced

A triangle is cut into 6 rows of small triangles. How many triangles are there in all (upright and upside-down)?

FormulaUpright + upside-down, size by size
  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.
    Why: 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

6 rows of small triangles
Practice group

Points and polygons

4 questions, easy to hard. Say the formula first, then substitute.

Practice 16 of 22 easy

10 points, no three on one line. How many straight lines can be drawn through pairs of them?

FormulanC2

Try it first. Next slide shows the solution step by step.

12345678910
10 points: every pair makes one line

Solution 16 easy

10 points, no three on one line. How many straight lines can be drawn through pairs of them?

FormulanC2
  1. Formula: lines = nC2 = n(n - 1)/2.
    Why: A line is fixed by 2 points.
  2. Here n = 10.
  3. Substitute: 10 × 9/2 = 45.

Answer: 45

12345678910
10 points: every pair makes one line

Practice 17 of 22 medium

7 points, no three on one line. How many triangles can be formed?

FormulanC3

Try it first. Next slide shows the solution step by step.

1234567
7 points: one of the 35 triangles

Solution 17 medium

7 points, no three on one line. How many triangles can be formed?

FormulanC3
  1. Formula: triangles = nC3 = n(n - 1)(n - 2)/6.
    Why: Any 3 points not on a line make a triangle.
  2. Here n = 7.
  3. Substitute: 7 × 6 × 5/6 = 35.

Answer: 35

1234567
7 points: one of the 35 triangles

Practice 18 of 22 medium

How many diagonals does an octagon have?

Formulan(n - 3)/2

Try it first. Next slide shows the solution step by step.

12345678
Octagon: 8 corners, every dashed line that is not a side is a diagonal

Solution 18 medium

How many diagonals does an octagon have?

Formulan(n - 3)/2
  1. Formula: diagonals = n(n - 3)/2.
    Why: 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

12345678
Octagon: 8 corners, every dashed line that is not a side is a diagonal

Practice 19 of 22 advanced

Triangles are made from the corners of a regular octagon. How many have NO side in common with the octagon?

FormulaAll - one side - two sides

Try it first. Next slide shows the solution step by step.

12345678
One triangle that shares no side with the octagon

Solution 19 advanced

Triangles are made from the corners of a regular octagon. How many have NO side in common with the octagon?

FormulaAll - one side - two sides
  1. Formula: triangles with no shared side = all triangles - (one side shared) - (two sides shared).
    Why: Count what you do not want and subtract.
  2. All triangles: 8C3 = 56.
    Why: Any 3 corners.
  3. Two sides shared: 3 corners in a row. There are 8 such runs.
    Why: 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.
    Why: The 2 ends and their 2 neighbours are ruled out.
  5. Substitute: 56 - 8 - 32 = 16.

Answer: 16

12345678
One triangle that shares no side with the octagon
Practice group

Mixed figures

3 questions, easy to hard. Say the formula first, then substitute.

Practice 20 of 22 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?

FormulaLabel every point, count by size

Try it first. Next slide shows the solution step by step.

Count the triangles

Solution 20 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?

FormulaLabel every point, count by size
  1. Method: Each horizontal line with the top corner makes triangles; count by size.
    Why: 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

Count the triangles

Practice 21 of 22 medium

A regular hexagon has its 3 long diagonals drawn. How many triangles are there?

FormulaLabel every point, count by size

Try it first. Next slide shows the solution step by step.

Count the triangles

Solution 21 medium

A regular hexagon has its 3 long diagonals drawn. How many triangles are there?

FormulaLabel every point, count by size
  1. Method: The long diagonals meet at the centre; check whether pieces combine into bigger triangles.
    Why: 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

Count the triangles

Practice 22 of 22 hard

A rectangle has both diagonals and a vertical line through the middle. How many triangles?

FormulaLabel every point, count by size

Try it first. Next slide shows the solution step by step.

Count the triangles

Solution 22 hard

A rectangle has both diagonals and a vertical line through the middle. How many triangles?

FormulaLabel every point, count by size
  1. Method: Label, then count by size; the middle line creates new triangles with the diagonals.
    Why: 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

Count the triangles

Recap

Now practise

22 questions with full solutions.

Open practice Back to the lesson