Find all positive integers n > 1 such that 2 n ( n + 1 ) − 1 is prime.
Enter your answer as the sum of the number of such positive integers and all of the corresponding prime values.
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.
Better yet, we can just use factorization. We have,
2 n ( n + 1 ) − 1 = p ⟺ n ( n + 1 ) = 2 ( p + 1 ) ⟺ n 2 + n − 2 = 2 p ⟺ ( n + 2 ) ( n − 1 ) = 2 p
Now, since n > 1 , we have n − 1 ∈ { 1 , 2 , p , 2 p } corresponding to n + 2 ∈ { 2 p , p , 2 , 1 } from which we can note that only the first two cases give sensible values for ( n , p ) and they are ( 2 , 2 ) and ( 3 , 5 ) .
Log in to reply
You should add this as a solution.
Looks like I just like to complicate things
Problem Loading...
Note Loading...
Set Loading...
Let n = 2 a , then the equation becomes:
2 n ( n + 1 ) − 1 ⟹ 2 2 a ( 2 a + 1 ) − 1 ⟹ 2 2 a ( 2 a + 1 ) − 2 which then simplifies to a ( 2 a + 1 ) − 1
We want this to equal to a prime p ;
a ( 2 a + 1 ) − 1 = p ⟹ 2 a 2 + a − ( 1 + p ) = 0
Use the quadratic formula:
a = 4 − 1 + 1 + 8 ( p + 1 ) , (we neglect the negative values because we want positive n , thus must have positive a )
Solve for the discriminant: 1 + 8 ( p + 1 ) = c 2 ⟹ 8 ( p + 1 ) + 1 = c 2 for some positive integer c because we want the discriminant to be a perfect square all the while a also has to be an integer or a fraction that yields an integer when multiplied by 2
Simple trial and error gives us p = 2 , 5 and there are 2 values for n
Note: we can also approach the last part by solving for c 2 ≡ 1 ( m o d 8 ) by using quadratic residues.