Advertisements
Advertisements
Question
Think about it.
How will you decide if a given number is a triangular number?
Answer in Brief
Solution
To decide if a number is a triangular number:
- Use the formula for the n-th triangular number: `T_n = (n(n+1))/2`
- Solve the quadratic equation n2 + n − 2T = 0, where T is the given number.
- Check if the solution for n is a positive whole number (integer). If yes, the number is triangular.
Alternatively, you can check if 8T + 1 is a perfect square. If it is, the number T is triangular.
shaalaa.com
Is there an error in this question or solution?