Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Popular topics and tags

    Shapes

    • Geometry
    • Vectors and matrices
    • Topology
    • Networks and graph theory
    • Fractals

    Numbers

    • Number theory
    • Arithmetic
    • Prime numbers
    • Fermat's last theorem
    • Cryptography

    Computing and information

    • Quantum computing
    • Complexity
    • Information theory
    • Artificial intelligence and machine learning
    • Algorithm

    Data and probability

    • Statistics
    • Probability and uncertainty
    • Randomness

    Abstract structures

    • Symmetry
    • Algebra and group theory
    • Vectors and matrices

    Physics

    • Fluid dynamics
    • Quantum physics
    • General relativity, gravity and black holes
    • Entropy and thermodynamics
    • String theory and quantum gravity

    Arts, humanities and sport

    • History and philosophy of mathematics
    • Art and Music
    • Language
    • Sport

    Logic, proof and strategy

    • Logic
    • Proof
    • Game theory

    Calculus and analysis

    • Differential equations
    • Calculus

    Towards applications

    • Mathematical modelling
    • Dynamical systems and Chaos

    Applications

    • Medicine and health
    • Epidemiology
    • Biology
    • Economics and finance
    • Engineering and architecture
    • Weather forecasting
    • Climate change

    Understanding of mathematics

    • Public understanding of mathematics
    • Education

    Get your maths quickly

    • Maths in a minute

    Main menu

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • Audiences

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Triangular number patterns

    by
    Zoheir Barka
    the Plus team
    5 March, 2021
    2 comments

    In this article we go hunting for triangular numbers. But we won't do this the usual way, by looking at triangles — oh no! Instead we find triangular numbers in the square grid of the multiplication table.

    Before we explain what triangular numbers are, let's look at this multiplication table and what we can do with it. The table below contains the numbers 1 to 10 in the first row and the first column. Any other square contains the product of the first number in its row and the first number in its column.

    Table 0

    We will add a row of 0s at the top and a column of 0s on the left. This still gives a consistent table and provides a nice frame for our patterns.

    Table 1

    Now let's colour in blue all the squares with numbers that are multiples of 2 (even numbers). This means that all columns corresponding to multiples of 2 are blue and all rows corresponding to multiples are also blue, giving us a blue grid. Any square that is not in this grid remains white. (Here we have extended the table so that it runs until the number 16 in the horizontal and vertical directions.)

    Table 2

    Now let's colour in blue all squares that are multiples of 3. As before, we get a blue grid consisting of the rows and columns corresponding to multiples of 3. The complement of this grid, that's the squares that are not part of it, form larger squares of 2x2=4 little squares:

    Table 2

    If we colour in blue all squares that are multiples of 4, we again get a blue grid. In this case the complement of the grid consists of larger squares containing 3x3=9 little squares each. In this case those large squares aren't entirely white, as the middle one in each is blue. The reason for this (as you might want to prove for yourself) is that 4 isn't a prime number.

    Table 3

    In general, if you choose a positive integer $k$ and colour in blue all multiples of $k$ in the multiplication table, you get a corresponding blue grid. The complement of the blue grid is always made up of squares consisting of $(k-1)^2$ little squares. Depending on whether or not $k$ is a prime number, these larger squares are solidly white or contain some blue squares. Because this is so much fun, let's do another one. Here's the pattern we get from $k=6$ (you can quite easily imagine the pattern for $k=5$ because 5 is prime).
    Table 4

    Triangular numbers

    Let's see how triangular numbers come into the picture. A triangular number is a number that can be represented by a pattern of dots arranged in an equilateral triangle with the same number of dots on each side at equal distance from each other.

    For example:

    Triangular numbers

    The first triangular number is $1$, the second is $1+2=3$, the third is $1+2+3=6$, the fourth $1+2+3+4=10$, and so on. Generally, the $nth$ triangular number, $T_n$, is the sum of the first $n$ integers $$T_n=1+2+3+...+n.$$

    How can we possibly find these marvellous numbers within the square grid of the multiplication table? First, let's look again at the multiplication table in which squares corresponding to multiples of 3 are coloured blue. (We ignore the multiplication table which has multiples of 2 coloured blue because it's what mathematicians call trivial: boring and not particularly insightful). The first of the white squares in the coloured table for 3 looks like this:

    Table 0

    Adding up the numbers in this white square gives $$1+2+2+4=9.$$ Now 9 is not a triangular number, but it's a square of a triangular number. To be precise, it's the square of the second triangular number $T_2.$ $$9=3^2=T_2^2.$$

    Now let's look at the multiplication table in which squares corresponding to multiples of 4 are coloured blue. The first of the larger, mostly white squares looks like this:

    Table 0

    Adding up the numbers in this square (including those in blue squares) gives $$1+2+3+2+4+6+3+6+9=36=(6)^2=T_3^2.$$ So in this case the sum is equal to the square of the third triangular number. It won't take you long to check that the same is true for the coloured multiplication tables corresponding to $k=5$ and $k=6.$
    Table 0

    Table 0

    When $k=5$ the numbers in the first larger square add to $$100=10^2=T_4^2$$ and when $k=6$ they add to $$225=15^2=T_5^2.$$

    Is this true in general?

    Is this always the case, no matter what kind of multiples we colour blue? If yes, then the numbers within the first larger square of the multiplication table coloured for multiples of $k$ add to the square of the $(k-1)st$ triangular number $T__{k-1}.$ Let's see if this is true. Looking at only the first whole square we see that the first row consists of the numbers $$1,2,3,...,k-1.$$ The second row consists of those numbers multiplied by $2$: $$2,4,6,...,2(k-1).$$ The second row consists of the numbers in the first row multiplied by $3$: $$3,6,9,...,3(k-1).$$ The pattern continues in this way, row by row, until we get to the last row of the square. Here we have the numbers of the first row multiplied by $k-1$: $$k-1, 2(k-1), 3(k-1), ... ,(k-1)^2.$$ Adding the sums of the $k-1$ rows gives $$\begin{array}{cc} & 1+2+3+..+k-1 \\ + & 2(1+2+3+..+k-1)\\ + & 3(1+2+3+..+k-1)\\ & ...\\ + & (k-1)(1+2+3+..+k-1) \end{array}$$ Factoring out $1+2+3+...+k-1$, the sum becomes $$(1+2+3+...+k-1)(1+2+3+...+k-1)=(1+2+3+...+k-1)^2.$$ And since, as noted above, $$T_{k-1}=1+2+3+...+k-1,$$ we have shown that the numbers within the first larger square add to $T_{k-1}^2,$ the square of the $(k-1)st$ triangular number.

    Given that every square in the multiplication table is related to every other square (by multiplication or addition) it stands to reason that triangular also numbers feature in all of the other large squares in the complement of the blue grid. To find out if this is true, and continue our journey through the secrets of the multiplication table, see the next page...


    About this article

    Zoheir Barka, from Laghouat in Algeria, is an amateur and self-educated mathematician. He has a Masters degree in French language from Laghouat University and is currently a French teacher in elementary school.

    • Log in or register to post comments

    Comments

    Elisabeth S

    13 March 2021

    Permalink

    A really interesting article, which I’m trying to get my head around.

    Looking at the pattern is the sum
    1 + 2 + 3 + 2 + 4 + 6 + 3 + 6 + 9 = 36 = (6)2 = T3 3 meant to read T2 3? Otherwise could you explain where the cubed part of the equation came from?

    Thank you.

    • Log in or register to post comments

    Marianne

    18 March 2021

    In reply to Query by Elisabeth S

    Permalink

    Thank you very much for pointing this out, it was indeed a typo. We have fixed it now.

    • Log in or register to post comments

    Read more about...

    triangular number
    arithmetic
    multiplication table

    Our Podcast: Maths on the Move

    Our Maths on the Move podcast brings you the latest news from the world of maths, plus interviews and discussions with leading mathematicians and scientists about the maths that is changing our lives.

    Apple Podcasts
    Spotify
    Podbean

    Plus delivered to you

    Keep up to date with Plus by subscribing to our newsletter or following Plus on X or Bluesky.

    University of Cambridge logo

    Plus is part of the family of activities in the Millennium Mathematics Project.
    Copyright © 1997 - 2025. University of Cambridge. All rights reserved.

    Terms