Are there an infinite number of integers $n$ such that $(3n)(n+1)$ is a perfect square

elementary-number-theoryintegerssequences-and-seriessquare-numbers

I am looking for cases in which $\sqrt{3n(n+1)}$ is an integer, i.e. cases in which
$$
3n(n+1)=m^2,\quad m\in\mathbb{N}.
$$

I can find solutions such as
$$
n=0,3,48,675,9408,131043,\dots
$$

and I expect this list to be infinite. Is it? Is there a straightforward way to prove these kinds of statements?

There are many ways of reframing the problem: finding integers $n$ that are simultaneously 3 times a perfect square and 1 less than another perfect square (choosing $3n$ and $n+1$ to each be perfect squares), etc. Then I could set $n=3k^2$ and try to solve for cases in which
$$
3k^2+1=l^2 \quad\Leftrightarrow\quad 3k^2=(l+1)(l-1)\quad k,l\in\mathbb{N}.
$$

It seems plausible that there are infinite solutions given the various formulas for perfect squares but none of the rabbit holes that I followed led me anywhere productive.

Best Answer

Yeah, there's infinitely many. You can see this by considering a particular case:

if $3n$ and $n+1$ are both squares.

we can parametrize this by $n = 3k^2$.

Then we need $3k^2+1=a^2$

So we want to solve $a^2-3k^2=1$ which is a Pell equation.

the fundamental solution $(a_1,k_1)$ is $(2,1)$ and the other solutions are obtained via the recurrence $a_{n+1}=2a_n + 3k_n, k_{n+1} = a_n+2k_n$.

So we get the solutions are:

$(7,4),(26,15),(97,56), \dots$