Why are $q$ and $p+1$ relatively prime if $q$ divides $p-1$?

112 Views Asked by At

Looking at the solution of an exercise on Sylow theorems, I see that, if $q$ and $p$ are odd primes such that $q|(p-1),$ then $q$ and $p(p+1)$ are relatively prime.

I understand that $q$ and $p$ are relatively prime, but is there a reason (theorem) why $q$ and $(p+1)$ are relatively prime?

Thank you for your help.

3

There are 3 best solutions below

0
On BEST ANSWER

If $d|q$ and $d|(p+1)$ and $q|(p-1),$ then $d|(p-1)$ and $d|(p+1),$ so $ d|2,$ so $d=1$ or $2,$

but $q$ is odd, so $d=1.$ Therefore $q$ and $p+1$ are relatively prime.

0
On

The only common factors of $p-1$ and $p+1$ are $1$ and $2$. Since $q$ divides $p-1$ those are the only possible common factors of $q$ and $p+1$. But $q$ is odd.

0
On

Consider $q = 3$, $p = 7$. Obviously in this instance $p - 1$ is a multiple of $q$, let's say $mq$, where $m \geq 2$. Then $p(p + 1)$$ = p^2 + p = (mq + 1)^2 + mq + 1$. And $(mq + 1)^2 + mq + 1 = m^2 q^2 + 2mq + 1 + mq + 1$$ = m^2 q^2$$ + 3mq + 2.$

Since $q$ is at least $3$, and $m^2 q^2 + 3mq$ is a multiple of $q$, and the next higher multiple is $m^2 q^2 + 3mq + q$, it follows that $\gcd(q, p^2 + p) = 1$. If you've been following along with the example, you've seen that $\gcd(3, 56) = 1$, that $54$ is a multiple of $3$ and the next multiple of $3$ is $57$.