I'm trying to find integer positive solutions to the equation: $$ 2 (r^2 - r) = t^2 - t $$ So far I've been giving "test" values to t, say $t = 20$, and then solving the quadratic equation with substituted $t$.
If the resulting value of $r$ is a natural number, then I have a solution. If not, I just try with a different number.
I have been able to get some solutions with this method (such as $t = 21, r =15$ and $t = 120, r =85$) but it's very repetitive and tedious for larger values.
Is there any smarter way to get integer solutions for this equation?