I want to learn more about Pell's equation.I've looked at the Wikipedia page https://en.wikipedia.org/wiki/Pell%27s_equation
But it isn't quite clear. The reason I want to learn more about Pell's equation is to understand better triangular-squared numbers
Ps I am a high school student.
Note that your previous question had already answers at Which triangular numbers are also squares?
The part you may not know well enough is solving $x^2 - 8 y^2 = 1.$ Not sure how much to say...
You probably do not know matrices. Given one solution $x^2 - 8 y^2 = 1,$ the next solution is $$ (x,y) \mapsto (3x+8y, x + 3y) $$ By the Cayley Hamilton Theorem, this tells us that, with $x_0 = 1, y_0 = 0,$ $$ x_{j+2} = 6 x_{j+1} - x_j, $$ $$ y_{j+2} = 6 y_{j+1} - y_j. $$ You can also confirm these formulas yourself, without using any matrices. Suggest you do that.
From your question yesterday:
Really brief tutorial: given $n > 0$ not a square, to find all integer solutions to $x^2 - n y^2 = 1$ with $x,y \geq 0,$ first find the smallest $u,v > 0$ such that $u^2 - n v^2 = 1.$ This is often called the fundamental solution. They give a table of fundamental solutions for $n \leq 128$ at TABLE
Given any solution $(x,y),$ the next solution is $$ (x,y) \mapsto (ux+nvy, vx + uy) $$ By the Cayley Hamilton Theorem, this tells us that, with $x_0 = 1, y_0 = 0,$ then $x_1 = u, y_1 = v,$ $$ x_{j+2} = 2u x_{j+1} - x_j, $$ $$ y_{j+2} = 2u y_{j+1} - y_j. $$