Triangular Number

Download as PDF

Have you ever arranged objects into a perfect triangle? The numbers that form these patterns, like 1, 3, 6, and 10, are called triangular numbers. They represent a fundamental link between geometry, simple addition, and powerful algebraic formulas that we'll explore together.

Triangular Number — an original Algebra911 reference diagram defining triangular number with its key formula and a worked example.
Triangular Numbers: A Complete Guide for Students

What Are Triangular Numbers?

A triangular number is a number that can be represented by a pattern of dots arranged in an equilateral triangle. It's a type of figurate number, which means it's a number that can be represented by a regular geometrical arrangement of equally spaced points. The sequence of triangular numbers starts with 1 and grows by adding a new row of dots, with each new row containing one more dot than the previous one.

Let's build the first few triangular numbers:

  • The 1st triangular number (T1) is just a single dot: 1.
  • The 2nd triangular number (T2) is formed by adding a row of two dots to the first one: 1+2=3.
  • The 3rd triangular number (T3) is formed by adding a row of three dots: 1+2+3=6.
  • The 4th triangular number (T4) is formed by adding a row of four dots: 1+2+3+4=10.
  • The 5th triangular number (T5) is formed by adding a row of five dots: 1+2+3+4+5=15.

Do you see the pattern? The n-th triangular number, which we write as Tn, is simply the sum of all the whole numbers from 1 up to n. This is the core definition:

The n-th triangular number is the sum of the first n positive integers.

So, to find the 100th triangular number, you would need to calculate 1+2+3++99+100. That sounds like a lot of work! Luckily, as with many patterns in mathematics, there's a brilliant shortcut—a formula that lets us calculate any triangular number without doing all that addition.

How Do You Find the Formula for Triangular Numbers?

Adding up a long list of numbers is tedious and prone to errors. A famous story from the history of mathematics tells of a young student, Carl Friedrich Gauss, who was asked by his teacher to add all the numbers from 1 to 100. The teacher hoped this would keep the class busy, but Gauss found the answer in moments. He used a clever trick that we can use to derive the formula for any triangular number, Tn.

Let's represent the sum we want to find, Tn, like this:

Tn=1+2+3++(n1)+n

Now, let's write that same sum again, but in reverse order:

Tn=n+(n1)+(n2)++2+1

The magic happens when we add these two equations together, term by term. We'll add the first term of each line, then the second term of each line, and so on.

  • First pair: 1+n=n+1
  • Second pair: 2+(n1)=n+1
  • Third pair: 3+(n2)=n+1
  • ...and so on...
  • Last pair: n+1=n+1

Every single pair adds up to the same value: (n+1)! Since we are adding n numbers in our original list, there are exactly n of these pairs. So, when we add the two equations together, we get:

Tn+Tn=(n+1)+(n+1)++(n+1)2Tn=n×(n+1)

We're almost there! We have the value for twice the triangular number. To find the value of just one Tn, we just need to divide by 2. This gives us the famous formula for the n-th triangular number:

T_n = \frac{n(n+1)}{2}

This powerful formula lets you find any triangular number instantly, just by knowing its position (n) in the sequence.

Worked Examples of Calculating Triangular Numbers

The formula Tn=n(n+1)2 is your key tool for solving problems involving triangular numbers. Let's walk through a few examples to see how it works, from straightforward calculations to more challenging "reverse" problems.

Example 1

Question: What is the 50th triangular number?

Solution: Here, we are looking for T50. The position in the sequence is n=50. We can substitute this value directly into our formula.

Step 1: Write down the formula.

Tn=n(n+1)2

Step 2: Substitute n=50 into the formula.

T50=50(50+1)2

Step 3: Simplify the expression inside the parentheses.

T50=50(51)2

Step 4: Perform the multiplication.

T50=25502

Step 5: Perform the final division.

T50=1275

Answer: The 50th triangular number is 1275. This means that 1+2+3++50=1275.

Example 2

Question: Is the number 91 a triangular number? If so, which one is it?

Solution: This is a reverse problem. We are given the potential value of Tn (which is 91) and we need to find if there is a positive integer n that produces it. We set our formula equal to 91 and solve for n.

Step 1: Set up the equation.

n(n+1)2=91

Step 2: Multiply both sides by 2 to eliminate the fraction.

n(n+1)=182

Step 3: Distribute the n on the left side.

n2+n=182

Step 4: Rearrange the equation into a standard quadratic form (ax2+bx+c=0) by subtracting 182 from both sides.

n2+n182=0

Step 5: Solve the quadratic equation. We can do this by factoring. We are looking for two numbers that multiply to 182 and add to +1. After some thought, we find that 14 and 13 work (14×13=182 and 14+(13)=1).

(n+14)(n13)=0

Step 6: Find the possible values for n. This equation is true if either (n+14)=0 or (n13)=0. This gives us two possible solutions: n=14 or n=13.

Step 7: Interpret the result. Since n represents the position in the sequence of triangular numbers, it must be a positive integer. Therefore, we discard the n=14 solution.

Answer: Yes, 91 is a triangular number because we found a positive integer solution, n=13. It is the 13th triangular number (T13).

Example 3

Question: Two consecutive triangular numbers add up to 100. What are they?

Solution: We know that any two consecutive triangular numbers can be written as Tn and Tn1. We are given their sum.

Step 1: Set up the equation based on the problem statement.

Tn1+Tn=100

Step 2: Recall the property that the sum of two consecutive triangular numbers is a square number: Tn1+Tn=n2. (We will prove this in the next section!)

Step 3: Substitute this property into our equation.

n2=100

Step 4: Solve for n. We take the square root of both sides.

n=100n=10

(We only consider the positive root since n must be positive).

Step 5: Identify the two triangular numbers. The problem asks for the numbers themselves, which are Tn and Tn1. With n=10, we need to find T10 and T9.

Using the formula for T10:

T10=10(10+1)2=10(11)2=1102=55

Using the formula for T9:

T9=9(9+1)2=9(10)2=902=45

Step 6: Check the answer. Do our two numbers, 45 and 55, add up to 100? Yes, 45+55=100.

Answer: The two consecutive triangular numbers are 45 and 55.

What's the Connection Between Triangular and Square Numbers?

One of the most elegant properties in all of mathematics is the relationship between triangular numbers and square numbers. As we saw in the last example, the sum of any two consecutive triangular numbers is always a perfect square.

Let's write this as a formal statement:

T_{n-1} + T_n = n^2

We can see this pattern by looking at the first few terms:

  • T1+T2=1+3=4=22
  • T2+T3=3+6=9=32
  • T3+T4=6+10=16=42
  • T4+T5=10+15=25=52

This relationship is not a coincidence, and we can prove it algebraically using our formula. Remember that Tn=n(n+1)2. To find Tn1, we just substitute (n1) everywhere we see an n:

Tn1=(n1)((n1)+1)2=(n1)n2

Now, let's add Tn1 and Tn together:

Tn1+Tn=(n1)n2+n(n+1)2

Since they have a common denominator, we can combine the numerators:

Tn1+Tn=n(n1)+n(n+1)2

Let's distribute the terms in the numerator:

Tn1+Tn=(n2n)+(n2+n)2

Notice that the n and +n terms cancel each other out!

Tn1+Tn=n2+n22=2n22

This simplifies beautifully to:

Tn1+Tn=n2

This algebraic proof confirms that the pattern holds true for all consecutive triangular numbers. You can even visualize this! If you draw the dot pattern for T3 (a triangle with 3 rows) and T4 (a triangle with 4 rows), you can physically fit them together to form a 4×4 square of dots.

What Are Some Other Properties of Triangular Numbers?

Beyond their connection to square numbers, triangular numbers are full of surprising patterns and relationships to other parts of mathematics. Here are a few more interesting properties to explore.

The "Is It Triangular?" Test

We already saw one way to check if a number is triangular by solving a quadratic equation. But there's a much faster test. A positive integer x is a triangular number if and only if 8x+1 is a perfect square.

Let's test this on our example from before, x=91:

8(91)+1=728+1=729

Is 729 a perfect square? Yes, 729=27. Since 8(91)+1 is a perfect square, we can confirm that 91 is a triangular number. This test is derived directly from the quadratic formula applied to n2+n2x=0 and is a very handy shortcut.

Sum of Cubes

This property, known as Nicomachus's Theorem, is truly remarkable. The sum of the first n cube numbers is equal to the square of the n-th triangular number.

\sum_{k=1}^{n} k^3 = 1^3 + 2^3 + \dots + n^3 = \left( \frac{n(n+1)}{2} \right)^2 = (T_n)^2

Let's check for n=3:

  • The sum of the first 3 cubes is 13+23+33=1+8+27=36.
  • The 3rd triangular number is T3=1+2+3=6.
  • The square of the 3rd triangular number is (T3)2=62=36.

They match perfectly! This reveals a deep connection between three different mathematical ideas: addition, cubing, and triangular numbers.

A Table of Properties

Sometimes seeing the numbers laid out helps reveal patterns. Let's look at the first few triangular numbers and some of their properties.

nTn (Triangular Number)Consecutive Sum (Tn1+Tn)Test (8Tn+1)
11-9 = 32
231+3=4=2225 = 52
363+6=9=3249 = 72
4106+10=16=4281 = 92
51510+15=25=52121 = 112
62115+21=36=62169 = 132

Notice in the last column that the results (9,25,49,) are all squares of consecutive odd numbers (32,52,72,)! Mathematics is filled with these beautiful, interconnected patterns.

Key formulas for triangular number by Algebra911.
Key formulas for triangular number by Algebra911.

Common Mistakes When Working with Triangular Numbers

Triangular numbers are straightforward once you grasp the concept, but there are a few common pitfalls that can trip students up. Being aware of these can help you avoid simple errors on homework and tests.

  1. Confusing n and Tn. This is the most common mistake. Remember that n is the position or term number in the sequence (e.g., the 5th number), while Tn is the actual value of that number (e.g., 15). If a question asks "What is the 12th triangular number?", it's giving you n=12 and asking for T12. If it asks "Is 45 a triangular number?", it's giving you a potential Tn and asking you to find n.
  2. Forgetting to Divide by 2. The formula is Tn=n(n+1)2. It's very easy to calculate n(n+1) and forget the last step of dividing by two. Always double-check your calculations. For example, for n=10, 10(11)=110. Don't stop there! The answer is 110/2=55.
  3. Getting a Non-Integer Answer for n. When you're testing if a number x is triangular, you solve the equation n(n+1)2=x. If your solution for n is a fraction or a negative number, it means x is not a triangular number. The term number n must be a positive whole number. There is no "2.5th" triangular number.
  4. Arithmetic Errors in the Quadratic Equation. Solving n2+n2x=0 can be tricky. Whether you are factoring or using the quadratic formula, a small mistake in signs or multiplication can lead to the wrong answer. Be methodical and write out your steps clearly. Using the 8x+1 test can be a great way to check your work.

Quick Summary and Reference

This lesson covered a lot of ground. Here is a quick summary of the most important concepts about triangular numbers for easy reference.

  • Definition: A triangular number, Tn, is the sum of the first n positive integers (1+2+3++n).
  • The First 10 Triangular Numbers: 1,3,6,10,15,21,28,36,45,55.
  • The Main Formula: The value of the n-th triangular number is given by the formula:
T_n = \frac{n(n+1)}{2}
  • The "Is It Triangular?" Test: A number x is triangular if and only if 8x+1 is a perfect square.
  • Connection to Square Numbers: The sum of two consecutive triangular numbers is a perfect square: Tn1+Tn=n2.

Keep this summary handy as you practice problems. Understanding these key points will give you a solid foundation for mastering triangular numbers and seeing their connections across algebra and geometry.

Frequently Asked Questions

What is the first triangular number?

The first triangular number is 1, which corresponds to n=1. While some advanced mathematical contexts might consider 0 (T0) as a triangular number, for school-level mathematics, the sequence almost always begins with the positive integers, making 1 the starting point.

Can a triangular number be negative?

No, triangular numbers cannot be negative. They are defined as the sum of the first n positive integers. Since all the numbers being added are positive, the sum will always be positive.

How do you find the next triangular number if you already know one?

If you know the n-th triangular number, Tn, you can find the next one, Tn+1, by simply adding (n+1) to it. For example, the 6th triangular number is 21 (T6=21). The next one is T7=T6+7=21+7=28.

Can a prime number be a triangular number?

Yes, but there is only one: the number 3. Since the formula is n(n+1)/2, one of n or n+1 is always even, so the result is almost always a composite number. The only case that results in a prime is when n=2, which gives T2=3.

What is the connection between triangular numbers and Pascal's Triangle?

Triangular numbers appear along the third diagonal of Pascal's Triangle (if you start counting the diagonals from 0). The sequence you see is 1, 3, 6, 10, 15..., which are the triangular numbers. This shows a deep link between combinatorics and number theory.

How are triangular numbers used in the real world?

They are very important in combinatorics, which is the study of counting. The classic 'handshake problem'—calculating the number of handshakes among a group of n people—is solved by the (n1)-th triangular number. They also appear in computer science for analyzing the complexity of certain algorithms with nested loops.

Is there an easy way to remember the formula?

Think of Gauss's method. You have n pairs of numbers that each add up to (n+1). That gives you a total sum of n(n+1). Since you added the list to itself, you have to divide by 2 to get the actual sum. So, it's n pairs of (n+1), divided by 2.