How many prime?

(n^3-1)/5 is a prime where n is a positive integer find no. of possible values of n

2 1 8 0

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.

2 solutions

Abdeslem Smahi
Aug 12, 2015

n 3 1 5 \frac {n^3-1}{5} is an integer n 3 1 ( m o d 5 ) n 1 ( m o d 5 ) \implies n^3 \equiv 1 \pmod{5} \implies n \equiv 1 \pmod{5}

Hence n = 5 k + 1 n=5k+1 which n 3 1 5 = 125 k 3 + 75 k 2 + 15 k 5 = k ( 25 k 2 + 15 k + 3 ) \implies \frac {n^3-1}{5}=\frac {125k^3+75k^2+15k}{5}=k(25k^2+15k+3)

So must k = 1 n = 6 k=1 \implies n=6 since n 3 1 5 \frac {n^3-1}{5} is a prime.

Verifying if n = 6 n=6 is a possible value: 6 3 1 5 = 43 \frac {6^3-1}{5}=43 which is a prime

so there is only one solution hence the answer is 1

Mathh Mathh
Aug 12, 2015

n 3 1 = ( n 1 ) ( n 2 + n + 1 ) = 5 p n^3-1=(n-1)(n^2+n+1)=5p . By Euclidean algorithm:

gcd ( n 1 , n 2 + n + 1 ) = gcd ( n 1 , ( n 1 ) ( n + 2 ) + 3 ) { 1 , 3 } \gcd(n-1,n^2+n+1)=\gcd(n-1,(n-1)(n+2)+3)\in\{1,3\}

If gcd = 3 \gcd=3 , then 9 5 p 9\mid 5p , impossible. So gcd = 1 \gcd=1 and four cases:

  • n 1 = 1 , n 2 + n + 1 = 5 p n-1=1, n^2+n+1=5p , impossible ( n = 2 n=2 and n 2 + n + 1 = 7 5 p n^2+n+1=7\neq 5p ).
  • n 1 = 5 , n 2 + n + 1 = p n-1=5, n^2+n+1=p gives ( n , p ) = ( 6 , 43 ) (n,p)=(6,43) .
  • n 1 = p , n 2 + n + 1 = 5 n-1=p, n^2+n+1=5 , impossible, since n 2 + n + 1 5 n^2+n+1\neq 5 .
  • n 1 = 5 p , n 2 + n + 1 = 1 n-1=5p, n^2+n+1=1 , impossible, since n 2 + n + 1 > 1 n^2+n+1>1 .

We can't have them both negative, e.g. n 1 = 1 , n 2 + n + 1 = 5 p n-1=-1, n^2+n+1=-5p , since n 2 + n + 1 > 0 n^2+n+1>0 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...