Category

Triangular Numbers Calculator: nth Term, Formula & Sequence

Find any triangular number Tₙ = n(n+1)/2, list the sequence, and check whether a number is triangular. Explore row sums, binomial coefficients C(n+1,2), and the 8Tₙ+1 square identity. Dimensionless — works with metric, US units, and any currency.

0 calculations

Calculation Parameters

n
terms
?
Leave empty to skip. A number x is triangular when 8x + 1 is a perfect square.

Quick reference

  • Tₙ = n(n + 1) / 2
  • First terms: 1, 3, 6, 10, 15, 21, 28, …
  • Tₙ + Tₙ₋₁ = n²
  • Tₙ is the sum 1 + 2 + … + n

Enter Parameters

Fill in the form on the left and click "Calculate"

Figurate numbers: an introduction

You've already heard of square numbers: 1, 4, 9, 16, … Why "square"? Because you can arrange that many dots in a perfect square. Now get ready for triangular numbers with our triangular numbers calculator!

Squares are not the only shapes in which you can arrange a specific number of dots. Since the time of the ancient Greeks, mathematicians have developed a passion for two categories of such numbers:

  • Figurate numbers, which you can arrange in any shape (with any number of dimensions); and
  • Polygonal numbers, which fit into regular polygons.

Polygonal numbers are a subset of figurate numbers — and the more interesting of the two. Triangular numbers are the simplest polygonal numbers of all.

What are triangular numbers?

Triangular numbers are the numbers of dots you can arrange in the shape of an equilateral triangle. The most trivial triangular number is 1 (a single dot). The next one is 3: we start from the previous triangle and add a row of dots long enough to make all sides equal — here, two more dots at the bottom.

Add another row of three dots and you get 6; another row of four gives 10; and one more gives 15. The first five triangular numbers are therefore:

1, 3, 6, 10, 15, …

Do you see the pattern? Each new triangular number is obtained by adding the next whole number to the previous one: 1, 1+2, 1+2+3, 1+2+3+4, …

How to find triangular numbers?

There is a beautiful closed-form formula. The n-th triangular number, written Tn, is:

Tₙ = 1 + 2 + 3 + … + n = n(n + 1) / 2

For example, the 10th triangular number is T₁₀ = 10 × 11 / 2 = 55, and the 100th is T₁₀₀ = 100 × 101 / 2 = 5,050. You never have to add up all the numbers — just multiply and halve.

Proofs for the triangular numbers formula

Why does n(n + 1) / 2 work? The classic argument (attributed to a young Carl Friedrich Gauss) writes the sum forwards and backwards and adds the two rows:

  S =   1 +   2 + … + (n−1) + n
  S =   n + (n−1) + … +   2  + 1
─────────────────────────────────
 2S = (n+1) + (n+1) + … + (n+1)   ← n copies
 2S = n(n + 1)   ⟹   S = n(n + 1) / 2

A geometric proof is just as elegant: take two copies of the triangular arrangement of Tn dots and fit them together to form an n × (n + 1) rectangle. The rectangle holds n(n + 1) dots, so one triangle holds exactly half of them.

Properties of the triangular numbers

Triangular numbers are rich in patterns. Our calculator highlights several of them for any n:

  • Sum of two consecutive triangular numbers is a square: Tn + Tn−1 = n². For instance, T₄ + T₃ = 10 + 6 = 16 = 4².
  • They are binomial coefficients: Tn = C(n + 1, 2), the number of ways to choose 2 items from n + 1.
  • 8Tₙ + 1 is always a perfect square: 8Tn + 1 = (2n + 1)². This gives a quick test for whether a number x is triangular — 8x + 1 must be a perfect square.
  • Alternating parity: the sequence of triangular numbers repeats the pattern odd, odd, even, even, …
  • Square triangular numbers: a few triangular numbers are also perfect squares — 1, 36, 1225, 41616, …
  • The third diagonal of Pascal's triangle (1, 3, 6, 10, 15, …) is exactly the triangular numbers.

Do triangular numbers have applications?

Yes — more than you might expect:

  • Handshakes and connections: the number of handshakes among n + 1 people, or edges in a complete graph, equals Tn.
  • Round-robin tournaments: the number of games when everyone plays everyone once.
  • Stacking objects: cannonballs, bowling pins (T₃ = 10 pins!), or logs arranged in a triangular pile.
  • Combinatorics: counting pairs, sub-intervals, and simple selections.

How to use our triangular numbers calculator

  1. Enter the term position n (from 1 to 10,000). The calculator instantly returns Tn = n(n + 1) / 2, together with all the properties above.
  2. Choose how many triangular numbers to list (from 1 to 100) to see the sequence and a detailed formula table.
  3. Optionally, type any whole number into "Check a number" and the calculator will tell you whether it is triangular — and, if so, which index it corresponds to. If it isn't, you'll see the nearest triangular numbers below and above it.

The triangular numbers sequence

Here are the first twenty triangular numbers to get you started:

1, 3, 6, 10, 15, 21, 28, 36, 45, 55,
66, 78, 91, 105, 120, 136, 153, 171, 190, 210, …

I know how to find triangular numbers; now what?

This field of math is rich in conjectures and open problems. Try exploring square triangular numbers, the link with Pascal's triangle, or Fermat's polygonal number theorem (every whole number is the sum of at most three triangular numbers!). We hope this calculator stimulates your curiosity.

FAQs

What is the formula for the n-th triangular number?

Tn = n(n + 1) / 2. It equals the sum of the first n positive integers, 1 + 2 + … + n.

How do I know if a number is triangular?

A whole number x is triangular if and only if 8x + 1 is a perfect square. If it is, the index is n = (√(8x + 1) − 1) / 2. Our calculator does this test for you in the "Check a number" field.

What are the first few triangular numbers?

1, 3, 6, 10, 15, 21, 28, 36, 45, 55, … Each is the previous one plus the next counting number.

Do triangular numbers use units or currencies?

Triangular numbers are pure, dimensionless counting numbers, so no units are required. The same count applies whether you are stacking objects measured in metric (cm, m) or US customary units (in, ft), or counting amounts in any currency such as dollars ($), rubles (₽), or euros (€).

Is 0 a triangular number?

By the convention T₀ = 0, zero is often counted as the 0th triangular number. This calculator lists the sequence starting from T₁ = 1, but the "Check a number" tool recognizes 0 as triangular.

Calculation History

Loading...