Advertisements
Advertisements
प्रश्न
Think about it.
How will you decide if a given number is a triangular number?
संक्षेप में उत्तर
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?