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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?