What is the minimum positive integer value of n , such that both 2 n + 1 and 3 n + 1 are perfect squares?
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.
Similar reasoning as @Md Zuhair , perhaps a little more step-by-step:
Considering that 2 n + 1 = a 2 while 3 n + 1 = b 2 for some integers a and b , we first make n the subject of the equation by subtracting the former equation from the latter as follows:
( 3 n + 1 ) − ( 2 n + 1 ) = b 2 − a 2
n = ( b − a ) ( b + a ) upon cancelling terms.
Two possibilities - either a and b have the same parity (i.e. both odd or both even), otherwise a and b have opposite parity (i.e. one is odd, the other is even).
Suppose we have the latter case where one is odd while the other is even. Then both ( a + b ) and ( a − b ) would be odd which makes n odd. In other words, n = 2 k + 1 for some non-negative integer k . But we encounter a glaring problem as when we substitute n = 2 k + 1 into 2 n + 1 = a 2 , we have a 2 = 2 ( 2 k + 1 ) + 1 = 2 × 2 k + ( 2 + 1 ) = 4 k + 3 . Note that a perfect square only leaves a remainder of 0 or 1 (never 3) when divided by 4.
We thus reject the latter possibility and can safely assume that the former is true. In fact, 2 n + 1 = a 2 tells us a must be odd so if b has the same parity as a , b must be odd too. Letting a = 2 h + 1 and b = 2 k + 1 , a + b = ( 2 h + 1 ) + ( 2 k + 1 ) = 2 h + 2 k + 2 = 2 ( h + k + 1 ) and a − b = ( 2 h + 1 ) − ( 2 k + 1 ) = 2 h − 2 k = 2 ( h − k ) . Since h and k are both integers, it can be easily seen that both ( h + k ) and ( h − k ) must have the same parity (both even or both odd) which means ( h + k + 1 ) and ( h − k ) have opposite parity (one is odd, the other even). In other words, either of ( h + k + 1 ) and ( h − k ) is even or divisble by 2. So either of a + b = 2 ( h + k + 1 ) or a − b = 2 ( h − k ) is divisible by 2 × 2 = 4 . The other is divisble by 2.
This tells us that n = a 2 − b 2 must be divisible by 4 × 2 = 8 .
Moreover, adding 2 n + 1 = a 2 to 3 n + 1 = b 2 gives us:
( 2 n + 1 ) + ( 3 n + 1 ) = a 2 + b 2
( 2 + 3 ) n + ( 1 + 1 ) = a 2 + b 2
5 n + 2 = a 2 + b 2
Note that a perfect square only leaves a remainder of 0, 1 or 4 when divided by 5. So for a 2 + b 2 to leave a remainder of 2 when divided by 5, the only possibility is both a 2 and b 2 leave a remainder of 1 when divided by 5. Then 2 n = a 2 − 1 and 3 n = b 2 − 1 tell us that 2 n and 3 n are divisible by 5. Since 2 and 3 are coprime to 5, n is divisible by 5 too.
Finally, the smallest n = 8 × 5 = 4 0
First, observe that the last digit of any perfect square is 1, 4, 5, 6, or 9.
Now consider n = 10k + m, m is 0-9. The last digit of 2n + 1 is 2m + 1 mod 10. So m is among 0, 2, 4, 5, 7, 9 if 2n + 1 is perfect square.
The last digit of 3n + 1 is 3m + 1 mod 10. This is when m is among 0, 1, 3, 5, 6, 8 if 3n + 1 is a perfect square.
So m is 0 or 5 if both cases are to be satisfied. A quick check among one or two digit numbers shows that 40 is the smallest, with 2n + 1 = 81 and 3n + 1 = 121.
Problem Loading...
Note Loading...
Set Loading...
t suffices to prove 5 ∣ n , 8 ∣ n .
Given that 2 n + 1 = x 2 , 3 n + 1 = y 2 , If we add the two equations we get: 5 n + 2 = x 2 + y 2 ⇒ x 2 + y 2 ≡ 2 ( m o d 5 ) , since the quadratic residues of mod 5 are 0 , 1 , 4 , we can check that only x 2 ≡ y 2 ≡ 1 works, therefore 2 n ≡ 1 − 1 ≡ 0 ( m o d 5 ) ⇒ 5 ∣ n
The same analysis can be done for 8 , but we will multiply the second equation by 2 first and then add:
8 n + 3 = x 2 + 2 y 2 ⇒ x 2 + 2 y 2 ≡ 3 ( m o d 8 ) , since the quadratic residues of mod 8 are 0 , 1 , 4 , we can check that only x 2 ≡ y 2 ≡ 1 works again, which means 3 n ≡ 1 − 1 ≡ 0 ( m o d 8 ) ⇒ 8 m o d n and we are done.