Triangular Number Calculator

Calculate the nth triangular number instantly using the formula \(T(n)=n(n+1)/2\). See the calculation, triangular number sequence, examples, and learn how to identify triangular numbers.

Calculate a Triangular Number

Enter a positive integer \(n\) to calculate \(T(n)\).

The calculator accepts integers from 1 to 1,000,000,000. The complete sequence is displayed only for smaller inputs.

What Is a Triangular Number?

A triangular number is a number that can be represented as the sum of the first \(n\) positive integers.

The first triangular numbers are:

\[ 1,\ 3,\ 6,\ 10,\ 15,\ 21,\ 28,\ 36,\ 45,\ 55,\ldots \]

For example:

\[ 1+2+3+4+5=15 \]

Therefore, 15 is the fifth triangular number: \[ T(5)=15 \]

Triangular Number Formula

The standard formula for the nth triangular number is:

\[ \boxed{ T(n)=\frac{n(n+1)}{2} } \]

This formula is equivalent to the sum:

\[ T(n)=1+2+3+\cdots+n \]

The formula allows you to calculate a triangular number directly without adding every integer from 1 through \(n\).

Triangular Number Examples

5th triangular number

\[ T(5) = \frac{5(6)}{2} = 15 \]

10th triangular number

\[ T(10) = \frac{10(11)}{2} = 55 \]

20th triangular number

\[ T(20) = \frac{20(21)}{2} = 210 \]

100th triangular number

\[ T(100) = \frac{100(101)}{2} = 5050 \]

First 25 Triangular Numbers

n T(n)
1 1
2 3
3 6
4 10
5 15
6 21
7 28
8 36
9 45
10 55
11 66
12 78
13 91
14 105
15 120
16 136
17 153
18 171
19 190
20 210
21 231
22 253
23 276
24 300
25 325

How to Tell if a Number Is Triangular

A positive integer \(x\) is a triangular number if and only if \(8x+1\) is a perfect square.

\[ x\text{ is triangular} \iff 8x+1\text{ is a perfect square} \]

This follows from solving:

\[ x=\frac{n(n+1)}{2} \] which gives: \[ n=\frac{-1+\sqrt{8x+1}}{2} \]

For example, consider \(15\):

\[ 8(15)+1=121=11^2 \]

Therefore 15 is triangular, and its index is:

\[ n=\frac{-1+11}{2}=5 \]

Properties of Triangular Numbers

Frequently Asked Questions

What is a triangular number?

A triangular number is a number that can be written as the sum of the first \(n\) positive integers. The nth triangular number is \(T(n)=n(n+1)/2\).

What is the formula for a triangular number?

The formula is: \[ T(n)=\frac{n(n+1)}{2}. \]

What is the 10th triangular number?

The 10th triangular number is: \[ T(10)=\frac{10(11)}{2}=55. \]

Is 15 a triangular number?

Yes. 15 is the fifth triangular number because \(1+2+3+4+5=15\).

Is 100 a triangular number?

No. Although 100 is a positive integer, it does not satisfy the triangular-number test because \(8(100)+1=801\), which is not a perfect square.

How do you check whether a number is triangular?

Calculate \(8x+1\). If the result is a perfect square, then \(x\) is a triangular number.

What is the difference between a triangular number and a triangular number sequence?

A triangular number is one particular value such as 15. The triangular number sequence is the complete sequence \(1,3,6,10,15,21,\ldots\).