Let, n is a natural number. If 2n+1 and 3n+1 both are perfect squares then the minimum value of n is?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Note that x 2 ≡ 0 , 1 or 4 ( m o d 5 ) for all integer x . In other words, squares leave the remainder 0 , 1 or 4 when divided by 5 .
If n ≡ 1 or 3 ( m o d 5 ) , then 2 n + 1 ≡ 3 or 2 ( m o d 5 ) and 2 n + 1 cannot be a perfect square as 3 , 2 are not quadratic residues modulo 5 . Similarly, if n ≡ 2 or 4 ( m o d 5 ) then 3 n + 1 ≡ 2 or 3 ( m o d 5 ) and 3 n + 1 cannot be a perfect square.
Thus, if both 2 n + 1 and 3 n + 1 are perfect squares, then n ≡ 0 ( m o d 5 ) .
Also 2 n + 1 ≡ 1 ( m o d 8 ) as odd square integers leave the remainder 1 when divided by 8 . It follows that 2 n + 1 ≡ 1 ( m o d 8 ) ⟹ n ≡ 4 ( m o d 8 ) or n ≡ 0 ( m o d 8 ) . But, if n ≡ 4 ( m o d 8 ) ⟹ 3 n + 1 ≡ 5 ( m o d 8 ) and thus cannot be a square as 5 is not a quadratic residue modulo 8 .
Thus, if both 2 n + 1 and 3 n + 1 are perfect squares, then n ≡ 0 ( m o d 8 ) .
From the above results we conclude that 5 ∣ n and 8 ∣ n which implies 4 0 ∣ n . Checking n = 4 0 gives 2 n + 1 = 8 1 = 9 2 and 3 n + 1 = 1 2 1 = 1 1 2 which are indeed perfect squares.
Therefore the minimum value of n for which both 2 n + 1 and 3 n + 1 are perfect squares is n = 4 0 .