Let $p$ be a prime and $n>1$ an integer such that $n\mid p-1$ and $p\mid n^3-1$, then $4p-3$ is a perfect square.

1.2k Views Asked by At

Let $p$ be a prime and $n>1$ an integer such that $n\mid p-1$ and $p\mid n^3-1$, then $4p-3$ is a perfect square.(*)

What I did: Supose $p>4$ since $n<p$ then $\gcd(p,n-1)=1$ therefore $p$ divides $n^2+n+1$ so $n^2 \equiv -n-1 \mod p$ by Fermat's little theorem: $n^{p-1} -1 \equiv 0 \mod p$ this implies $1+n+n^2+...+n^{p-2} \equiv 0 \mod p$ so $p \equiv 1 \mod 3$. Now I'm stuck.

EDIT: in order to avoid ambiguity: Supose for a given prime number there is one natural number, $n$, greater than 1 such that: $\begin{cases} n \vert p-1\\ p \vert n^3-1 \end{cases}$ prove (*)

1

There are 1 best solutions below

0
On BEST ANSWER

Note that $$n\,|\,p-1\implies p-1=kn\implies p=kn+1$$ for some $k\in \mathbb N$

Similarly $$p\,|\,n^2+n+1\implies mp = n^2+n+1$$ for some $m\in \mathbb N$

It follows that $$n^2+n+1=m(kn+1)=mkn+m\implies n^2+(1-mk)n+(1-m)=0$$

Now, the roots of this quadratic must be integers, so the discriminant must be a perfect square. It follows that there is some $N\in \mathbb N$ such that $$(1-mk)^2+4(1-m)=N^2$$

Case I: $m=1$ In that case $$p=n^2+n+1\implies 4p-3=(2n+1)^2$$

Case II: $m>1$. In that case we easily see that $$4(m-1)≥2(mk-1)+1$$ But this quickly shows that $k=1$ which implies that $p=n+1$ which would imply that $n+1\,|\,n^2+n+1$ which is impossible.