Square Triangular Number — Definition, Formula & Example
A square triangular number is a whole number that is both a perfect square and a triangular number. That many dots can be arranged as a filled square or as a staircase-shaped triangle. The first few are 1, 36, 1225, and 41616.
A nonnegative integer is a square triangular number if for some nonnegative integers and . Rearranging gives . So the pairs , are solutions of Pell's equation . There are infinitely many such numbers. Starting from and (some sources omit 0), they satisfy the recurrence .
Key Formula
Where:
- = the k-th square triangular number (N_0 = 0, N_1 = 1, N_2 = 36, N_3 = 1225)
- = the position in the sequence, a nonnegative integer
Worked Example
Problem: Show that 1225 is a square triangular number. Find and with .
Step 1: Check that 1225 is a perfect square.
Step 2: Use the triangular-number test. is triangular exactly when is a perfect square.
Step 3: Solve with the quadratic formula. Keep the positive root, then check it.
Answer: 1225 is a square triangular number because and . So and .
Why It Matters
Square triangular numbers are a standard first example of Pell's equation in number theory and in competitions such as the AMC and olympiads. For 1225, and satisfy . The fraction is a very close approximation of the irrational number .
Common Mistakes
Mistake: Assuming a perfect square such as 100 is triangular just because it is a familiar square.
Correction: Run the triangular test as well. For 100, , which lies between and . So 100 is not triangular. Square triangular numbers are rare. The next one after 1225 is 41616.
