I'm trying to prove the following statement:
If $kn+1$ and $(k+1)n+1$ are both perfect squares, then $2k+1$ divides n, where k and n are positive integers.
Case $k=1$:
Put $n+1=x^2$, $2n+1=y^2$. Quadratic residues can only be $0, 1 \mod 3$.
Hence
$n \equiv 1 \mod 3 \Rightarrow x^2 = n+1 \equiv 2 \mod 3$
$n \equiv 2 \mod 3 \Rightarrow y^2 = 2n+1 \equiv 5 \equiv 2 \mod 3$
Both of them are contradictions.
Case $k=2$:
Put $2n+1=x^2$, $3n+1=y^2$. Quadratic residues can only be $0, 1, 4 \mod 5$. Hence
$n \equiv 1 \mod 5 \Rightarrow x^2 = 2n+1 \equiv 3 \mod 5$
$n \equiv 2 \mod 5 \Rightarrow y^2 = 3n+1 \equiv 2 \mod 5$
$n \equiv 3 \mod 5 \Rightarrow x^2 = 2n+1 \equiv 2 \mod 5$
$n \equiv 4 \mod 5 \Rightarrow y^2 = 3n+1 \equiv 3 \mod 5$
All of them are contradictions.
Case $k=3$:
See If 4n+1 and 3n+1 are both perfect sqares, then 56|n. How can I prove this?
It might be possible to prove further individual cases for different k.
However I'm not sure if the statement is true for all positive k and if yes, how to prove it.
Some observations:
If $kn+1 = x^2$ and $(k+1)n+1 = y^2$ we get
$y^2-x^2=n$
$y^2+x^2=(2k+1)n+2$
$(k+1)x^2-ky^2=1$
but I have no good idea how to proceed. Any hint/help is appreciated.
$n=8(2k+1)$ is a solution in all cases:
$$kn+1 = 8k(2k+1)+1 = 16k^2+8k+1 = (4k+1)^2$$
$$(k+1)n+1 = 8(k+1)(2k+1)+1 = 8(2k^2+3k+1)+1 = 16k^2+24k+9 = (4k+3)^2$$ – ThomasL Jan 29 '20 at 22:59