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.
-
1Where is that $x$ coming from? Don't you mean $n$, since I imagine you factored a difference of cubes to get that expression? – PrincessEev Apr 23 '19 at 03:49
-
yes, sorry, just a habit, i will fix it right now! – Monnsom Apr 23 '19 at 03:51
3 Answers
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.
- 374,822
$$ 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:
- If $gcd(n+1, n^2 - n + 1) = 3$, there are no solutions since we have $3^2$ on the RHS
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$
- 2,121
-
-
-
1The 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
$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
- 274,582