Triangular Numbers Calculator
You've already heard of square numbers: now get ready for triangular numbers with our triangular numbers calculator!
Keep reading and you will find everything you need (and don't need) to know about triangular numbers. This field of math is rich in conjectures and open problems: we hope this calculator will stimulate your curiosity!
Here you will learn:
- What figurate numbers are;
- What triangular numbers are;
- How to calculate and build the triangular numbers;
- The most important properties of triangular numbers;
- A list of triangular numbers; and
- Much more!
Figurate numbers: an introduction
11, 44, 99, ... These are the first square numbers. Why "square"? Because you can arrange them in a square shape. If you think of each unit as a dot, the image becomes immediately clear:
Squares are not the only shapes in which you can arrange specific numbers of "dots". Since the time of ancient Greeks, mathematicians have developed a passion for two categories of such numbers:
- Figurate numbers, which you can arrange in any shape (with any dimensions);
- Polygonal numbers, which fit into regular polygons.
Polygonal numbers are a subset of figurate numbers and the more interesting of the two types.
What are triangular numbers?
Triangular numbers are numbers you can arrange in the shape of an equilateral triangle. Note that we are not "measuring" the sides as much as we are counting them.
Which numbers can we pack in a triangle? Let's start with the most trivial triangular number, 11. The next one would be... 33. Surprised?
How did we build the second triangular number? Imagine working with "dots".
- We started from the previous triangular number, 11; and
- We added a row of dots, enough to create sides of equal length.
In this case, it sufficed to add two dots at the bottom. The remaining sides would use a single dot of this new row and the previous vertex.
We can go on and build the next one too. The steps are the same: add a row, as long as you need to make it composed of the same number of dots that will be on the tilted sides after the addition.
From 33, we add other three dots at the bottom. The sides, composed initially of two dots, now count, accordingly, 33.
The geometrical construction of triangular numbers is pretty straightforward. To find the numbers themselves, simply count the dots in each triangle: 11, 33, 66, and so on.

Can you list the first 5 triangular numbers?
They are: 11, 33, 66, 1010, and 1515.
Do you see a pattern?
How to find triangular numbers?
You can keep on adding dots and counting to find all the triangular numbers you want, or you can look for a relationship that would easily give you the same result.
Let's introduce the triangular numbers formula:
The last equality introduces the binomial coefficient, an essential operation in combinatorics. It is definitely not a fraction, and you can see its definition in the equality before.
The binomial coefficient (kn)(kn) counts the number of subsets of size kk you can build starting from nn elements.
🙋 The series we sum to generate the kthkth triangular number closely resembles the factorial function, apart from the fact that we sum instead of multiply. Donald Knuth, the legendary computer scientist, proposed the name termial (from "terms" instead of factors) and the notation kk.
Proofs for the triangular numbers formula
We can prove the formula for triangular numbers in two different ways:
- A graphical proof; and
- An induction proof.
Graphic proof
Take the construction of any triangular number, and rotate it on one side. Now duplicate, flip, and arrange it to create a rectangle (maintaining the spacing between dots).
We showed you how to do it in the image above. Now, let's count what's going on there. The triangle has a side nn (55, in this case), which is also the value of one of the rectangle's sides. The rectangle's other side is equal to n+1n+1: this is the best way we can pack them!
Now, let's calculate the "area" of the rectangle, which is the number of dots it contains.
We also know that the "area" of the triangle is half the one of the rectangle, thus:
The result corresponds to the one you met before — there are 2n⋅(n+1)2n⋅(n+1) dots in the triangle!
Induction proof
The induction proof of the formula for the triangular numbers is slightly more abstract. Luckily, the trivial case T1=1T1=1 gives us the first step on the ladder. We need to prove that if the relation:
is true for kk, then it is true also for k+1k+1.
We expand the formula above and proceed from there:
This is the same relationship we assumed to be true before, but for the value k+1k+1:
Induction works, and we got our proof!
Properties of the triangular numbers
As for many seemingly unimpressive concepts in math, triangular numbers are a treasure trove of properties and relations. Let's check some of them out!
First: triangular numbers and square numbers are intimately connected. Take any pair of adjacent triangular numbers and sum them: you'll obtain a square number. How?
First, look at the graphic representation:
Easy peasy: it's just a matter of tilting and fitting. What about taking a look at the formula? Let's consider the triangular numbers TnTn and Tn+1Tn+1, as per the example above.
That is the size of a n+1n+1 square number.
Triangular numbers are also related to the hexagonal numbers, and since hexagons are the bestagons, we expected it. Hexagonal numbers are numbers you can arrange in the shape of the perimeter of a regular hexagon. Starting from 11, alternating triangular numbers are hexagonal numbers: 11, 66, 1515, 2828, and so on.
Let's go on! There is a relationship between triangular numbers and Mersenne primes, a particular type of prime number in the form 2k−12k−1. In particular, every even perfect number is a triangular number, and we find them by calculating the triangular number associated with the Mersenne prime MpMp:
The last equality comes from the definition of Mersenne primes: Mp=2p−1→Mp+1=2pMp=2p−1→Mp+1=2p.
The sequence grows rapidly: the numbers that satisfy this rule are TMp=6TMp=6, 2828, 496496, 81288128, 3355033633550336, 85898690568589869056...
We are not commenting on this, just appreciating!
More? Take a triangular number TnTn, and consider it with its four adjacent numbers, two on each "side":
Let's sum them:
This result is always true!
Do triangular numbers have applications?
Even if triangular numbers look so abstract, they find some applications. If you have a fully connected network with nn nodes, then the number of connections is Tn−1Tn−1:
- For a single node, n=1n=1 and T0=0T0=0;
- For two nodes, n=2n=2 and T1=1T1=1;
- For n=3n=3, T2=3T2=3;
- For n=4n=4, T3=6T3=6.
🙋 This result is also a solution to the handshake problem: how many handshakes will be in a party with nn guests? With a bit of order, we can assume that the first guest shakes n−1n−1 hands, the second n−2n−2, and so on, till the most introverted of them, which never initiates a handshake.
How to use our triangular numbers calculator
You can use our triangular numbers calculator to find the triangular number TnTn from the value of nn.
To generate, simply insert a non-negative integer. We will return the value of the corresponding TnTn triangular number. You will also see a graphical representation of the first 8 triangular numbers.
The triangular numbers sequence
The online encyclopedia of integer sequences, a gold mine for any mathematics enthusiast, lists the triangular number sequence as A000217. On the relevant web page of the project, you can find the list of the first triangular numbers. We report it here partially:
I know how to find triangular numbers; now what?
Our triangular number calculator guided you in this brief exploration of a relatively obscure field of math. You can keep this knowledge and use it to show off at parties, expand it, or play a little with it.
Discover more about math with our tools, from the perfect square calculator (which follows the triangular numbers calculator) to the magic square calculator (which explores more playful math).
FAQs
- What are the first triangular numbers?
- Here is a list of triangular numbers: 0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91. To generate them, you can use the formula for the triangular numbers: Tn = n × (n+1)/2. We consider 0 to be a triangular number because it satisfies this relation (and many other properties of triangular numbers), but together with 1 is a trivial case.
- How do I find triangular numbers?
- To find triangular numbers, you can either count or calculate! To count, follow these steps: Place a dot (this is T₁ = 1); Add two dots below it. This creates a triangle whose sides are two dots long (T₂ = 3); Keep adding dots below each version of the triangle: the newly added line must create equally long sides. If this process is too difficult, you can generate any triangular number by using the following formula: Tn = n × (n+1)/2.
- Why is 1 a triangular number?
- Because it is a good point from where to start with the sequence. After all, one dot is everything: from a really short line, to an infinitely small polygon with an infinite number of sides. It simply makes sense to consider 1 as the first non-null triangular number, just as it makes sense to consider it the first non-null square: 1² = 1.
- What is a triangular number?
- A triangular number is a number you can arrange in the shape of an equilateral triangle when using a corresponding number of elements like dots. Triangular numbers are the result of the sum of the consecutive integer numbers from 1 to the desired end.
Based on 1 source
- Triangular numbers — N. J. A. Sloane
Related calculators
Remainder
Use the remainder calculator to find the quotient and remainder of division.
Math
Slope
Calculate the slope of a line from two given points using the slope calculator. Discover the slope formula and learn how to find a slope with two points.
Math
Average
Calculate the average (mean) with our user-friendly tool. Discover how to find averages or perform quick calculations effortlessly.
Math
Circumference
Use this free circumference calculator to find the area, circumference and diameter of a circle.
Math