DoingMaths - Free maths worksheets
  • Home
  • Algebra
    • Algebraic expressions
    • Algebraic equations
    • Expanding brackets
    • Index notation
    • Inequalities
    • Quadratic equations
    • Sequences
    • Simultaneous equations
    • Straight line graphs
    • Substitution
  • Shapes, space and measures
    • Angles
    • Circles
    • Circle theorems
    • Compound measures
    • Construction
    • Distance/speed-time graphs
    • Length, area and volume
    • Metric and Imperial conversions
    • Metric units of measurement
    • Proof
    • Pythagoras' Theorem
    • Scale factors, similarity and congruence
    • Symmetry and reflection
    • Time
    • Trigonometry
  • Number
    • Primary Addition and Subtraction
    • Addition and subtraction
    • Basic number work
    • BODMAS/PEMDAS/BIDMAS
    • Compound percentage change
    • Decimals
    • Factors and Multiples
    • Fractions
    • Fractions, decimals and percentages
    • Money
    • Multiplication and division
    • Percentages
    • Ratio and Proportion
    • Rounding and estimating
    • Standard form
  • Statistics and Probability
    • Averages and the Range
    • Box plots
    • Collecting data
    • Pie charts
    • Probability
  • More
    • Starters >
      • Puzzles and riddles
      • Maths Wordsearches
      • More Maths Lesson Starter Ideas
    • Christmas Maths Activities
    • Maths Articles >
      • Revision and How-To Guides >
        • How do Scale Factors Work for Area and Volume?
        • Edexcel GCSE Maths 2023 Paper 2: The Final Question
        • How to Find the Average From a Frequency Table
        • What Do the Angles in a Polygon Add Up To?
        • How to Integrate by Parts: Calculus Help
        • How to Use Pythagoras' Theorem
        • How to Calculate Compound Percentage Changes
        • How to Find Equivalent Fractions
        • How to Find the Averages and Range From Grouped Data
        • How to Factorise a Quadratic Algebraic Equation
        • How to Expand a Pair of Brackets
        • How to Complete the Square
        • How to Find the Average of a Group of Numbers
        • Hannah's Sweets - Tricky GCSE Question
        • Why Do We Rationalise the Denominator?
        • How to Add, Subtract, Multiply and Divide Fractions
        • How to Answer the 'Impossible' Question on the Edexcel GCSE Maths Paper 2022
        • How to Draw Pie Charts
        • How to Differentiate From First Principles
        • How to Solve Direct Proportion Questions
        • How to Calculate a Percentage of an Amount Using a Decimal Multiplier
        • How to Find the Lowest Common Multiple and Highest Common Factor of Two Numbers
        • How to Write a Number as a Product of Its Prime Factors
        • How to Solve a Quadratic Equation: 3 Methods
        • How To Solve the GCSE Maths Question That's Leaving Parents Stumped
        • How to Multiply Decimal Numbers Without a Calculator
      • How Many Gifts Do I Get Over the Twelve Days of Christmas?
      • How to Find the Sum of a Geometric Sequence
      • The Maths Behind A4 Paper
      • The Monty Hall Problem
      • Rationalizing the Denominator
      • How Do Binary Numbers Work?
      • Rice on a Chessboard
      • How to Prove Pi Equals 2
      • What is the Maximum Score in Ten-Pin Bowling?
      • The Prisoner's Dilemma
      • How Many Socks Make a Pair?
      • Four Interesting Types of Mathematical Numbers
      • How to Add the Numbers 1-100 Quickly
      • What Is the Sum of the Sequence 1, 1/2, 1/4, 1/8, 1/16, ...?
      • Find the Answer to 8×9×10×11×12 Without Using a Calculator
      • How to Prove that the Square root of 2 is Irrational
      • Three Interesting Fractals From Koch, Sierpinski and Cantor
      • How Many Squares Are on a Chessboard?
      • Different Kinds of Prime Numbers
      • How to Do Long Multiplication Using Napier's Method
      • The Handshake Problem
      • Why You Should Always Order the Large Pizza
      • Maximizing the Area of a Rectangle
      • Speed Arithmetic - How to Multiply by 11 Without a Calculator
      • Speed Arithmetic - How to Multiply and Divide by 5 Without a Calculator
      • Pythagoras' Theorem - A Proof
      • How Large Is Infinity?
      • Interesting Facts About Pascal's Triangle
      • Why Does Time Slow Down as You Approach the Speed of Light?
      • Five of History's Most Influential Women in STEM
      • Five More of History's Most Influential Women in STEM
      • How Likely Are You to Hit the Centre of the Archery Target?
      • Find Four Primes Smaller Than 100 Which Are Factors Of 3^32 − 2^32
      • Bertrand's Paradox: A Problem in Probability Theory
      • What Is an Erdős Number?
      • Three of Isaac Newton's Most Important Contributions to the World
      • Mathematical Numbers: What Is 'e'?
      • Hilbert's Paradox of the Grand Hotel: Another Look at Infinity
      • Decreasing the Circumference of Differently Sized Circles: A Counterintuitive Cricket Problem
      • Zeno's Paradox: Achilles and the Tortoise
      • What Are Hexadecimal Numbers?
      • Why Do We Split a Circle Into 360 Degrees?
      • N-bonacci Sequences - Taking Fibonacci Further
      • Being Careful When You Average an Average: A Basketball Problem
      • What Is a Dudeney Number?
      • Every Prime Number Larger Than 3 Is 1 Away From a Multiple of 6: A Proof
      • Why Do Buses Come in Threes?
      • A Quick Way to Solve 1000^2 − 999^2: The Difference of Two Squares
      • What Are Triangular Numbers?
      • What Is the Collatz Conjecture?
      • How to Make a Mathematical Paper Snowflake
      • What Is the Unexpected Hanging Paradox?
      • What Is Pi?
      • Is There a Biggest Prime Number or Do They Continue Infinitely?
    • A-Level Maths Paper Walkthroughs >
      • A-Level Maths, Edexcel, June 2018, Paper Walkthroughs >
        • A-Level Maths, June 2018, Pure Paper 1 Question Walkthroughs
        • A-Level Maths, June 2018, Pure Paper 2, Question Walkthroughs
        • A-Level Maths, June 2018, Statistics and Mechanics, Question Walkthroughs
      • A-Level Maths, Edexcel, June 2019, Paper Walkthroughs >
        • A-Level Maths, June 2019, Pure Paper 1, Question Walkthroughs
        • A-Level Maths, June 2019, Pure Paper 2, Question Walkthrough
        • A-Level Maths, June 2019, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2020, Paper Walkthroughs >
        • A-Level Maths, October 2020, Pure Mathematics Paper 1, Question Walkthroughs
        • A-Level Maths, October 2020, Pure Mathematics Paper 2, Question Walkthroughs
        • A-Level Maths, October 2020, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2021, Paper Walkthroughs >
        • A-Level Maths, October 2021, Pure Mathematics, Paper 1 Walkthroughs
        • A-Level Maths, October 2021, Pure Mathematics Paper 2 Walkthroughs
        • A-Level Maths, October 2021, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, June 2022, Paper 1 Walkthroughs
    • Mathematician of the Month
    • Tricky Geometry Problems
    • DoingMaths video channel
    • DoingMaths Shop
    • Contact us
    • Privacy policy

What Are Triangular Numbers?

The triangular numbers are a sequence of numbers created by arranging dots into equilateral triangles of increasing size. You can see from the diagram below that the first triangular number, 1, is formed from just one dot.
To get the second triangular number, 3, we add another row, this time containing two dots, underneath our original dot.
We then add a row of three dots to get the third triangular number, 6.
We continue to do this, each time adding an extra row to the bottom of the triangle, which contains one more dot than the previous row. This gives the sequence 1, 3, 6, 10, 15, 21, etc.
The first six triangular numbers
The first six triangular numbers: Source: Melchoir - Wikimedia Commons

Describing Triangular Numbers Algebraically​

We have seen how to construct the sequence of triangular numbers using a pictorial method, but now, let's try to formalise this mathematically. We can see from what we have done so far that the difference between one triangular number and the next increases by one each time.
If we denote the first triangular number as T1, the second as T2, and so on so that the nth triangular number is Tn, and furthermore define the zero-th triangular number as 0, we get that:
T0 = 0
T1 = T0 + 1 = 1
T2 = T1 + 2 = 3
T3 = T2 + 3 = 6
T4 = T3 + 4 = 10
and so on.
We therefore get that any triangular number is the sum of all of the positive integers up to and including its term number i.e. Tn = 1 + 2 + 3 + 4 + ... + n.
In sum notation, this can be expressed as in the following picture.
Summation formula for the triangular numbers
Summation formula for the triangular numbers

How to Calculate the nth Triangular Number

We know that Tn = 1 + 2 + 3 + … + n.
If we rewrite Tn but with the sum in reverse, we get that Tn = n + n−1 + n−2 + … + 2 + 1
Adding these two lines together, we get that:
Tn + Tn = (n + 1) + (n − 1 + 2) + (n − 2 + 3) + … + (n + 1)
2Tn = (n + 1) + (n + 1) + (n + 1) + … + (n + 1)
As there are n terms in this series, we then get:
2Tn = n × (n + 1)
Tn = n × (n + 1) / 2
Using this formula, we can quickly calculate any term in the series.
E.g. T50 = 50 × 51 / 2 = 1275
T1000 = 1000 × 1001 / 2 = 500 500

The Link Between the Triangular Numbers and the Square Numbers

Perhaps surprisingly, there is a very simple link between the triangular numbers and the square numbers. Firstly, let's think about this pictorially.
If we align our triangles to the side, creating right-angled triangles instead of equilaterals, we can then take two consecutive triangles and, by rotating one through 180°, put them together to make a square. This can be seen in the picture below, where we have taken the 3rd triangular number (in red) and the 4th triangular number (in blue). By adding them together, we get a square of size 4 × 4 = 16.
Adding the Third and Fourth Triangular Numbers
Adding the Third and Fourth Triangular Numbers

Triangular and Square Numbers: The Algebra

We can see quite easily that this method can be applied to all of the triangular numbers we have seen so far, and if we add together any consecutive triangular numbers, we do indeed get a square number.
For example; 1 + 3 = 4, 3 + 6 = 9, 6 + 10 = 16.
Furthermore, we can see that so far, we are getting all of the square numbers 1 (equal to the first triangular number), 4, 9, 16, etc. without skipping any.
This can be shown algebraically by considering the formula we created earlier.
Tn + Tn−1 = n × (n + 1) / 2 + (n − 1) × n / 2
= (n^2 + n) / 2 + (n^2 − n) / 2
= 2n^2 / 2
= n^2
We have, therefore, shown that any consecutive triangular numbers must add together to create a square number and any square number n^2 can be formed by adding together Tn and Tn−1.

The Link Between Triangular Numbers and Cube Numbers: Nicomachus's Theorem

There is also a surprisingly simple link between the triangular numbers and the cube numbers. The square of the nth triangular number is equal to the sum of the first n cube numbers.
Algebraically, this can be expressed as:
Tn^2 = (1 + 2 + 3 + … + n)^2 = 1^3 + 2^3 + 3^3 + … + n^3.
This is known as Nichomachus's theorem, named after the ancient Greek mathematician Nichomachus of Gerasa.

Practical Uses of the Triangular Numbers

Perhaps the most famous application of the triangular numbers is in the Handshake problem. If we have n people in a room, how many handshakes are needed so that each person shakes hands with everybody else exactly once?
If there are only 2 people in a room, then 1 handshake takes place.
If there are 3 people in a room, then person a shakes hands with person b and person c, followed by person b and person c shaking hands for a total of 3 handshakes.
If there are 4 people in a room, it can be calculated fairly easily that 6 handshakes are needed.
This can be expanded to n people. With n people in a room, the first person would need to shake hands with everybody else in the room, making n − 1 handshakes featuring the first person. The second person needs to shake hands with everybody, but we have already counted his handshake with person 1, so they have a further n − 2 people to shake hands with.
By continuing this logic, we can see that for n people, there will be (n − 1) + (n − 2) + … + 2 + 1 handshakes. As we have already seen, this is equal to Tn−1.
Therefore, regardless of how many people there are in the room, the number of handshakes required will always be a triangular number.
The Handshake problem is also equivalent to calculating how many games need to be played in a round-robin group stage of a tournament where each team plays each other a single time. For example, in a group of 4 teams, there would be 6 matches to play.

Comments

Don't forget to leave your feedback in the comments below.
Home      Algebra      Shapes, space and measures      Number      Data handling      Starters      Internet articles      DoingMaths Youtube channel
© Copyright DoingMaths free worksheets 2026 - All Rights Reserved
  • Home
  • Algebra
    • Algebraic expressions
    • Algebraic equations
    • Expanding brackets
    • Index notation
    • Inequalities
    • Quadratic equations
    • Sequences
    • Simultaneous equations
    • Straight line graphs
    • Substitution
  • Shapes, space and measures
    • Angles
    • Circles
    • Circle theorems
    • Compound measures
    • Construction
    • Distance/speed-time graphs
    • Length, area and volume
    • Metric and Imperial conversions
    • Metric units of measurement
    • Proof
    • Pythagoras' Theorem
    • Scale factors, similarity and congruence
    • Symmetry and reflection
    • Time
    • Trigonometry
  • Number
    • Primary Addition and Subtraction
    • Addition and subtraction
    • Basic number work
    • BODMAS/PEMDAS/BIDMAS
    • Compound percentage change
    • Decimals
    • Factors and Multiples
    • Fractions
    • Fractions, decimals and percentages
    • Money
    • Multiplication and division
    • Percentages
    • Ratio and Proportion
    • Rounding and estimating
    • Standard form
  • Statistics and Probability
    • Averages and the Range
    • Box plots
    • Collecting data
    • Pie charts
    • Probability
  • More
    • Starters >
      • Puzzles and riddles
      • Maths Wordsearches
      • More Maths Lesson Starter Ideas
    • Christmas Maths Activities
    • Maths Articles >
      • Revision and How-To Guides >
        • How do Scale Factors Work for Area and Volume?
        • Edexcel GCSE Maths 2023 Paper 2: The Final Question
        • How to Find the Average From a Frequency Table
        • What Do the Angles in a Polygon Add Up To?
        • How to Integrate by Parts: Calculus Help
        • How to Use Pythagoras' Theorem
        • How to Calculate Compound Percentage Changes
        • How to Find Equivalent Fractions
        • How to Find the Averages and Range From Grouped Data
        • How to Factorise a Quadratic Algebraic Equation
        • How to Expand a Pair of Brackets
        • How to Complete the Square
        • How to Find the Average of a Group of Numbers
        • Hannah's Sweets - Tricky GCSE Question
        • Why Do We Rationalise the Denominator?
        • How to Add, Subtract, Multiply and Divide Fractions
        • How to Answer the 'Impossible' Question on the Edexcel GCSE Maths Paper 2022
        • How to Draw Pie Charts
        • How to Differentiate From First Principles
        • How to Solve Direct Proportion Questions
        • How to Calculate a Percentage of an Amount Using a Decimal Multiplier
        • How to Find the Lowest Common Multiple and Highest Common Factor of Two Numbers
        • How to Write a Number as a Product of Its Prime Factors
        • How to Solve a Quadratic Equation: 3 Methods
        • How To Solve the GCSE Maths Question That's Leaving Parents Stumped
        • How to Multiply Decimal Numbers Without a Calculator
      • How Many Gifts Do I Get Over the Twelve Days of Christmas?
      • How to Find the Sum of a Geometric Sequence
      • The Maths Behind A4 Paper
      • The Monty Hall Problem
      • Rationalizing the Denominator
      • How Do Binary Numbers Work?
      • Rice on a Chessboard
      • How to Prove Pi Equals 2
      • What is the Maximum Score in Ten-Pin Bowling?
      • The Prisoner's Dilemma
      • How Many Socks Make a Pair?
      • Four Interesting Types of Mathematical Numbers
      • How to Add the Numbers 1-100 Quickly
      • What Is the Sum of the Sequence 1, 1/2, 1/4, 1/8, 1/16, ...?
      • Find the Answer to 8×9×10×11×12 Without Using a Calculator
      • How to Prove that the Square root of 2 is Irrational
      • Three Interesting Fractals From Koch, Sierpinski and Cantor
      • How Many Squares Are on a Chessboard?
      • Different Kinds of Prime Numbers
      • How to Do Long Multiplication Using Napier's Method
      • The Handshake Problem
      • Why You Should Always Order the Large Pizza
      • Maximizing the Area of a Rectangle
      • Speed Arithmetic - How to Multiply by 11 Without a Calculator
      • Speed Arithmetic - How to Multiply and Divide by 5 Without a Calculator
      • Pythagoras' Theorem - A Proof
      • How Large Is Infinity?
      • Interesting Facts About Pascal's Triangle
      • Why Does Time Slow Down as You Approach the Speed of Light?
      • Five of History's Most Influential Women in STEM
      • Five More of History's Most Influential Women in STEM
      • How Likely Are You to Hit the Centre of the Archery Target?
      • Find Four Primes Smaller Than 100 Which Are Factors Of 3^32 − 2^32
      • Bertrand's Paradox: A Problem in Probability Theory
      • What Is an Erdős Number?
      • Three of Isaac Newton's Most Important Contributions to the World
      • Mathematical Numbers: What Is 'e'?
      • Hilbert's Paradox of the Grand Hotel: Another Look at Infinity
      • Decreasing the Circumference of Differently Sized Circles: A Counterintuitive Cricket Problem
      • Zeno's Paradox: Achilles and the Tortoise
      • What Are Hexadecimal Numbers?
      • Why Do We Split a Circle Into 360 Degrees?
      • N-bonacci Sequences - Taking Fibonacci Further
      • Being Careful When You Average an Average: A Basketball Problem
      • What Is a Dudeney Number?
      • Every Prime Number Larger Than 3 Is 1 Away From a Multiple of 6: A Proof
      • Why Do Buses Come in Threes?
      • A Quick Way to Solve 1000^2 − 999^2: The Difference of Two Squares
      • What Are Triangular Numbers?
      • What Is the Collatz Conjecture?
      • How to Make a Mathematical Paper Snowflake
      • What Is the Unexpected Hanging Paradox?
      • What Is Pi?
      • Is There a Biggest Prime Number or Do They Continue Infinitely?
    • A-Level Maths Paper Walkthroughs >
      • A-Level Maths, Edexcel, June 2018, Paper Walkthroughs >
        • A-Level Maths, June 2018, Pure Paper 1 Question Walkthroughs
        • A-Level Maths, June 2018, Pure Paper 2, Question Walkthroughs
        • A-Level Maths, June 2018, Statistics and Mechanics, Question Walkthroughs
      • A-Level Maths, Edexcel, June 2019, Paper Walkthroughs >
        • A-Level Maths, June 2019, Pure Paper 1, Question Walkthroughs
        • A-Level Maths, June 2019, Pure Paper 2, Question Walkthrough
        • A-Level Maths, June 2019, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2020, Paper Walkthroughs >
        • A-Level Maths, October 2020, Pure Mathematics Paper 1, Question Walkthroughs
        • A-Level Maths, October 2020, Pure Mathematics Paper 2, Question Walkthroughs
        • A-Level Maths, October 2020, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2021, Paper Walkthroughs >
        • A-Level Maths, October 2021, Pure Mathematics, Paper 1 Walkthroughs
        • A-Level Maths, October 2021, Pure Mathematics Paper 2 Walkthroughs
        • A-Level Maths, October 2021, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, June 2022, Paper 1 Walkthroughs
    • Mathematician of the Month
    • Tricky Geometry Problems
    • DoingMaths video channel
    • DoingMaths Shop
    • Contact us
    • Privacy policy