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
Result
Result
What is a 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
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:
For a given \(x\), solve the equation \(n(n + 1) = 2x\).
Rewrite the equation as: \(n^2 + n - 2x = 0\).
Use the quadratic formula: \(n = \frac{-1 \pm \sqrt{1 + 8x}}{2}\), If \(n\) is a positive integer, \(x\) is a triangular number.