<s>[INST] Prove that $2+2\sqrt{12n^2+1}$ is perfect square Problem:

Let $n \in \mathbb{N}$ such that $2+2\sqrt{12n^2+1}$ is the integer. Prove that $2+2\sqrt{12n^2+1}$  is perfect square.

I tried to found $n$ such that $\sqrt{12n^2+1}$ is integer, i.e. $12n^2 + 1 = k^2$. It is a Pell equation, and it has solution: $(n_0,k_0) = (0,1)$,
$$\begin{cases} n_{i+1} &=& 7n_i + 2k_i \\ k_{i+1} &=& 24n_i + 7k_i.\end{cases}$$ You can see this link. But I don't know how the next step. Or maybe you have another approach.
 [/INST] Let $$12n^2+1=4k^2+4k+1 \Rightarrow 3n^2=k^2+k=k(k+1)$$
This implies that $k=3a^2, k+1=b^2$ or $k=b^2, k+1=3a^2$. However, the second case is impossible as $$b^2 =3a^2-1 \equiv -1 \pmod 3$$
Thus, we have that $k+1$ is a perfect square. 
Note $$2+2\sqrt{12n^2+1}=4k+4=(2b)^2$$ Our proof is done. 
</s>