0

I set the equation to $19 p - 1 = n^3$, then got $19 p =(n+1)(n^2-n+1)$. I don't know what to do now.

Monnsom
  • 23

3 Answers3

3

Because $19$ is a prime, as long as $n+1,n^2-n+1 \gt 1,$ which is any time $n \gt 1,$ you need one of the factors on the right to be $19$ and one to be $p$. That is not many possibilities.

Ross Millikan
  • 374,822
2

$$ 19p = (n+1)(n^2 - n + 1)$$

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

Hence we have the following cases:

  1. If $gcd(n+1, n^2 - n + 1) = 3$, there are no solutions since we have $3^2$ on the RHS
  2. If $gcd(n+1, n^2 - n + 1) = 1$,

    2a.$19 = n+1 \implies p = n^2-n+1 = 307$

    2b. $19 = n^2 - n + 1 \implies n^2-n-18 = 0 \implies n=\frac{1\pm\sqrt{73}}{2}$

Hence $\boxed{p = 307}$ (case 2a) is the only solution. $19*307 - 1 = 18^3$

user1952500
  • 2,121
  • can you explain how we get 307 from n^2-n+1? – Monnsom Apr 23 '19 at 04:15
  • Plug $n=18$ into $n^2-n+1$ – Ken Wei Apr 23 '19 at 04:25
  • 1
    The operations on $gcd(n+1,n^2-n+1)$ don't seem to hold; e.g. $n=3$ gives $gcd(4,7) \neq 3$. – Ken Wei Apr 23 '19 at 04:30
  • @KenWei you are right, it should be 1 or 3. I initially had it that way but then thought this would work. I will check why this went wrong or else revert to the earlier method – user1952500 Apr 23 '19 at 05:17
  • 1
    @KenWei I have reverted to the earlier solution. My error was that when I introduced the factor, I inadvertently made it the gcd. Thanks for the comment. Does it look accurate now? – user1952500 Apr 23 '19 at 05:22
2

$n+1=m,n^2-n+1=(m-1)^2-(m-1)+1=m^2-3m+3$

$\implies(n+1,n^2-n+1)$ must divide $3$

If $3$ divides $n+1,3^2$ will divide $19p$ which is impossible $\implies p\ne19$

Now $n+1$ must divide $19p$ so, is one of $1,p,19,19p$

Check all four cases