Find all prime numbers $p,q,r,k$ such that $pq+qr+rp = 12k+1$
Problem
Source: Iberoamerican 2016 P1
Tags: number theory, prime numbers, Iberoamerican, Iberoamerican 2016
28.09.2016 03:32
28.09.2016 04:18
Lookin' at the eq. mod $3$ gives that exactly one of the members of the set $\{p,q,r\}$ is equal to $3$. Supposing that $p=3$, the eq. becomes $$3q+qr+3r=12k+1.$$ Resorting to Simon's Favorite Factoring Trick we can rewrite this eq. as follows: $$(q+3)(r+3) = 2(6k+5).$$Since $2(6k+5)$ is twice an odd number, it follows that $r=2$ or $q=2$. If $r=2$, then $5=12k-5q$ and whence $k=5, q=11$. If $q=2$, then $5=12k-5r$ and whence $k=5, r=11$. It follows that the sols. to the given equation are: $p=2, q=3 , r=11, k=5$ $p=2, q=11, r=3, k=5$ $p= 3, q=11, r=2, k=5$ $p= 3, q=2, r=11, k=5$ $p=11, q=3, r=2, k=5$ $p=11, q= 2, r=3, k=5$.
28.09.2016 04:20
It seems that $k$ prime was just a distraction then?
28.09.2016 04:24
It depends. I can think of another way of doing it that relies on $p,q,r,k$ being all prime numbers
28.09.2016 05:38
rafayaashary1 wrote: It seems that $k$ prime was just a distraction then? If we dropped that condition, we would have infinitely many solutions: for any $u \in \mathbb{N}$ such that $q=12u-1$ is a prime number (a well-known theorem due to Dirichlet allows us to ascertain the existence of infinitely many such $u$), it would suffice to make $p=3, r=2, q=12u-1, k=5u$.
28.09.2016 05:46
RIP that makes more sense
05.10.2016 00:20
I've a rather bashy solution. If $p,q,r>3$, then as they are primes, they satisfy the congruency $p,q,r \equiv \pm 1 \pmod 6$. As that right-hand side is congruent to $1 \pmod 6$ and the left-hand side has terms congruent to $\pm 1 \pmod 6$, we can conclude that exactly one term is congruent to $-1 \pmod 6$. WLOG $pq \equiv -1 \pmod 6$ and WLOG $p \equiv 1$ and $q \equiv -1$. But that $r \equiv -1$ to ensure the congruency $qr \equiv 1 \pmod 6$. That then gives $rp \equiv -1 \pmod 6$. Contradiction. Let $p = \min(p,q,r)$. Then $p \leq 3$. If $p=3$, then \[ 1 \equiv 12k+1 = 3q+3r+qr \equiv qr-q-r \pmod 4. \]Now $q,r \equiv \pm 1 \pmod 4$ as $q,r \geq p>2$. Testing all possibilities shows that the above congruence cannot be satisfied. If $p=2$, then \[ 2q+2r+qr=12k+1. \]If $q,r \neq 3$, then $q,r \equiv \pm 1 \pmod 3$. By testing we can easily show that there are no solutions again. Therefore, we can WLOG let $q = 3$. We then get \[ 6+5r=12k+1 \iff 5(r+1)=12k. \]As $k$ is prime, we get $k=5$ and $r=11$. So $(p,q,r,k)=(2,3,11,5)$ which is indeed a solution, as $p,q,r,k$ are all primes and plugging them into the equation gives as equality. Permuting the triple $(p,q,r)$ gives us all ordered quadruples.
05.10.2016 06:26
Suppose all primes in the left hand of the equation are odd. Analize mod $4$ and always find $3\equiv1\ (\mbox{mod }4)$, a contradiction. Thus we can assume $r=2$. Rewrite the resulting equation as $$ (p+2)(q+2)=12k+5 $$thus \[ (p+2)(q+2)\equiv2\ (\mbox{mod }3) \]then one of $p+2$ or $q+2$ is $2$ mod $3$ thus one of $p$ or $q$ is $0$ mod $3$ (so equal to $3$ since both are primes). Thus we can assume $q=3$. Then the original equation becomes \begin{align*} (p+2)\cdot5 & =12k+5 \end{align*}thus $5|k$ so $k=5$. Then $p=11$ and we are done. The values of $p$, $q$, and $r$ can be permuted.
05.10.2016 18:34
Here is my solution: We assume WLOG $p \ge q \ge r$. Working $(mod 4)$ we realise that one of $p,q,r$ must be equal to $2$. Which means $r=2$. Then working $(mod 3)$ we realise that one of $p,q$ must be equal to $3$. Which means $q=3$. Finally we easily notice that $5$ divides $k$ which means $k=5$ and $p=11$. Concluding $k=5$ and $(p,q,r)=(11,3,2)$ cyclic.
31.10.2023 00:58