Triangular Number Calculator

Enter a number to check if it's a triangular number or specify a range to generate all triangular numbers.

Triangular Number Check or Generate

What is a Triangular Number?

triangular number

A triangular number represents a number that can form an equilateral triangle using dots. The \(n\)-th triangular number can be calculated using the formula: \( T_n = \frac{n(n + 1)}{2} \) where \(n\) is a positive integer.

How to Determine if a Number is a Triangular Number

triangular number

A number \(x\) is triangular if there exists a positive integer \(n\) such that: \( x = \frac{n(n + 1)}{2} \) This means the total number of dots in the sequence matches the sum of an arithmetic series starting at 1 with a common difference of 1.

Calculation Steps:

  1. For a given \(x\), solve the equation \(n(n + 1) = 2x\).
  2. Rewrite the equation as: \(n^2 + n - 2x = 0\).
  3. Use the quadratic formula: \(n = \frac{-1 \pm \sqrt{1 + 8x}}{2}\), If \(n\) is a positive integer, \(x\) is a triangular number.

Examples

Example 1: Is 10 a Triangular Number?

Solution:

\(n = \frac{-1 + \sqrt{1 + 8 \cdot 10}}{2} = \frac{-1 + \sqrt{81}}{2} = 4\)

Result: 10 is a triangular number.

Example 2: Is 36 a Triangular Number?

Solution:

\(n = \frac{-1 + \sqrt{1 + 8 \cdot 36}}{2} = \frac{-1 + \sqrt{289}}{2} = \frac{16}{2} = 8\)

Result: 36 is a triangular number.

Example 3: Is 150 a Triangular Number?

Solution:

\(n = \frac{-1 + \sqrt{1 + 8 \cdot 150}}{2} = \frac{-1 + \sqrt{1201}}{2} \approx \frac{34.64}{2} \approx 17.32\)

Result: 150 is not a triangular number.

First 100 Triangular Numbers

  • 1
  • 3
  • 6
  • 10
  • 15
  • 21
  • 28
  • 36
  • 45
  • 55
  • 66
  • 78
  • 91
  • 105
  • 120
  • 136
  • 153
  • 171
  • 190
  • 210
  • 231
  • 253
  • 276
  • 300
  • 325
  • 351
  • 378
  • 406
  • 435
  • 465
  • 496
  • 528
  • 561
  • 595
  • 630
  • 666
  • 703
  • 741
  • 780
  • 820
  • 861
  • 903
  • 946
  • 990
  • 1035
  • 1081
  • 1128
  • 1176
  • 1225
  • 1275
  • 1326
  • 1378
  • 1431
  • 1485
  • 1540
  • 1596
  • 1653
  • 1711
  • 1770
  • 1830
  • 1891
  • 1953
  • 2016
  • 2080
  • 2145
  • 2211
  • 2278
  • 2346
  • 2415
  • 2485
  • 2556
  • 2628
  • 2701
  • 2775
  • 2850
  • 2926
  • 3003
  • 3081
  • 3160
  • 3240
  • 3321
  • 3403
  • 3486
  • 3570
  • 3655
  • 3741
  • 3828
  • 3916
  • 4005
  • 4095
  • 4186
  • 4278
  • 4371
  • 4465
  • 4560
  • 4656
  • 4753
  • 4851
  • 4950
  • 5050