Triangular Numbers Calculator

Calculate the nth triangular number, check if a number is triangular, explore the sequence with dot patterns, and learn properties and identities.

Which triangular number do you want? T(n) = n(n+1)/2
T(10)
55
The 10th triangular number = 10×11/2
T(9)
45
Previous triangular number
T(11)
66
Next triangular number
Difference
10
T(10) − T(9) = 10 (always equals n)
Tetrahedral Sum
220
Σ T(k) for k=1..10 = 10(10+1)(10+2)/6
T(n)²
3,025
Square of the triangular number

Dot Pattern Visualization

10 rows → 55 dots total

Sequence Growth

T(1) through T(10) — quadratic growth O(n²)

Properties of Triangular Numbers

PropertyFormula / Description
DefinitionT(n) = 1 + 2 + 3 + … + n = n(n+1)/2
RecursiveT(n) = T(n−1) + n, with T(0) = 0
Testt is triangular ⟺ 8t + 1 is a perfect square
Sum of triangularsΣ T(k) for k=1..n = n(n+1)(n+2)/6 (tetrahedral number)
Relation to squaresT(n) + T(n−1) = n²
Parity patternOdd, odd, even, even, odd, odd, even, even, … (period 4)
Generating functionx/(1−x)³ = Σ T(n)xⁿ
Connection to binomialT(n) = C(n+1, 2) = "n+1 choose 2"
Planning notes, formulas, and examples

About the Triangular Numbers Calculator

A **triangular number** counts the objects that can form an equilateral triangle. The first few triangular numbers are 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, … and the formula for the nth triangular number is **T(n) = n(n+1)/2**. This elegant expression, famously derived by the young Carl Friedrich Gauss, gives the sum of the first n natural numbers and appears throughout mathematics, computer science, and combinatorics.

Triangular numbers are the simplest class of **figurate numbers** — numbers that can be represented as regular geometric patterns of dots. They connect to binomial coefficients (T(n) = C(n+1, 2)), tetrahedral numbers (the sum of consecutive triangular numbers), and even square numbers (the sum of two consecutive triangular numbers always equals a perfect square). Pascal's third diagonal is exactly the sequence of triangular numbers.

Our **Triangular Numbers Calculator** offers three powerful modes: **Find the nth triangular number** with a beautiful dot-pattern visualization, **Check if a given number is triangular** using the 8t+1 perfect-square test, and **Explore the sequence** up to any limit with growth charts and factor breakdowns. Whether you're studying number theory, exploring sequences for OEIS, or teaching figurate numbers to students, the page makes the concept visual and interactive.

When This Page Helps

Triangular numbers are a gateway to number theory and combinatorics. This calculator computes the sequence values, shows the dot-pattern visualization, applies the perfect-square membership test, and lets you explore the sequence together with the key identities. It is useful for students learning about figurate numbers, teachers preparing lessons, and programmers recognizing triangular-number patterns in problems.

How to Use the Inputs

  1. Select a mode: Find nth, Check if Triangular, or Sequence in Range.
  2. In "Find nth" mode: enter n to compute T(n). The dot pattern appears automatically for n ≤ 12.
  3. In "Check" mode: enter any positive integer to test whether it's a triangular number.
  4. In "Range" mode: enter a maximum value to see all triangular numbers up to that limit.
  5. Click presets to explore classic examples like T(10) = 55 or T(100) = 5050 (Gauss's sum).
  6. Review the growth bar chart to visualize how triangular numbers increase quadratically.
  7. Check the properties reference table at the bottom for identities and connections to other number types.
Formula used
T(n) = n(n+1)/2. Test: t is triangular ⟺ 8t+1 is a perfect square. Inverse: n = (−1 + √(1+8t))/2. Sum: Σ T(k) for k=1..n = n(n+1)(n+2)/6 (tetrahedral). Relation: T(n) + T(n−1) = n².

Example Calculation

Result: T(10) = 55

The 10th triangular number is 10×11/2 = 55. This equals the sum 1+2+3+…+10, which young Gauss famously computed by pairing numbers: (1+10) + (2+9) + (3+8) + (4+7) + (5+6) = 5 pairs of 11 = 55.

Tips & Best Practices

  • For n ≤ 12, the dot pattern visualization appears automatically — try small numbers first to build intuition.
  • In Check mode, the calculator shows both the nearest triangular numbers above and below your input.
  • The growth bar chart clearly shows the quadratic O(n²) growth of triangular numbers.
  • T(n) = C(n+1, 2), so triangular numbers appear in combinations and probability problems.
  • Every even perfect number is also a triangular number (e.g., 6 = T(3), 28 = T(7)).

The Gauss Connection

The story of young Carl Friedrich Gauss and the sum 1+2+3+…+100 is one of the most famous anecdotes in mathematics. The pairing trick — matching the first number with the last, the second with the second-to-last, and so on — yields n/2 pairs each summing to n+1, giving the formula T(n) = n(n+1)/2. This insight is the foundation of arithmetic series and appears in the very first proofs students encounter in mathematical induction.

Triangular Numbers in Combinatorics

Triangular numbers are identical to binomial coefficients "n+1 choose 2" = C(n+1, 2). This means T(n) counts the number of ways to choose 2 items from n+1 objects — explaining the handshake problem (n people make T(n−1) = C(n,2) handshakes). They form the third diagonal of Pascal's triangle, connecting figurate numbers directly to the binomial theorem.

Beyond Triangular: The Figurate Number Family

Triangular numbers are just the beginning of the **figurate number** family. **Square numbers** form squares (n²), **pentagonal numbers** form pentagons (n(3n−1)/2), **hexagonal numbers** form hexagons (n(2n−1)), and the pattern continues for any polygon. In three dimensions, triangular numbers generalize to **tetrahedral numbers** Te(n) = n(n+1)(n+2)/6, then to **pentatope numbers** in four dimensions, and so on. The study of figurate numbers spans over 2,500 years, from Pythagorean mathematics to modern number theory and the theory of modular forms.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A triangular number counts dots that can be arranged in an equilateral triangle pattern. The nth triangular number T(n) = 1+2+3+…+n = n(n+1)/2. The first few are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55.