How to Use
Features:
- Generate: First N square triangular numbers
- Check: Is n both square and triangular?
- Values: Both m and k
Formula
The nth square triangular number: ST(n) = ((17+12√2)ⁿ + (17-12√2)ⁿ - 2)/32. Recurrence: ST(n) = 34·ST(n-1) - ST(n-2) + 2.
Pell Equation
If x²−2y²=1 (Pell), then m=(x−1)/2 gives m²=T(k) where k=(x−1)/2·y. Fundamental solution: (3,2) → ST(1)=1. Next: (17,12) → ST(2)=36.
Step-by-Step Instructions
- 1Choose count.
- 2Generate sequence.
- 3View m,k values.
- 4Check a number.
- 5See Pell connection.