Find all primes $p$ such that there exist an integer $n$ and positive integers $k, m$ which satisfies the following. $$ \frac{(mk^2+2)p-(m^2+2k^2)}{mp+2} = n^2$$
Problem
Source: 2017 KMO Problem 2
Tags: number theory
12.11.2017 13:56
I heard infinite descent can be used here. The answer seems to be $3$ and primes of the form $4k+1$. It's not very difficult to show that there exists $n, k, m$ for such primes, (use fermat's two square for $4k+1$) Proving that there are no solution for $2$ and $4k+3$ primes other than $3$ seems to be very difficult.
12.11.2017 16:45
Okay, last week I didn't solve a Markov equation on my test so I hope my below solution is right so that I can have a sweet revenge! Firstly, assume $n\in\mathbb{N}$ doesn't cost anything. Rewrite the equation as: $(mk^2+2)p-x^2-2k^2=(mp+2)n^2$ $\Leftrightarrow p(mk^2-mn^2+2)=m^2+2k^2+2n^2$ $\Leftrightarrow p=\frac{m^2+(k+n)^2+(k-n)^2}{m.(k-n).(k+n)+2}$ Checking the case: $m(k-n)(k+n)=-1$ we have the answer $p\equiv 1 \pmod 4$ Now, assume: $k>n$, and so the equation is equivalence to solve the following equation (call it $(1)$) $p=\frac{a^2+b^2+c^2}{abc+2}$ in natural numbers. (Note, we may concern about the parity of $(k+n,k-n)$ but for $3$ numbers, there are two of them which are same parity) The case $p=2$ can be handled with the same method as the below but of course will take some small case so I won't consider it. Assume $p\geq 3$ Consider a natural roots of $(1)$ as: $(a_1,b,c)$ with $a_1\geq \text{max}\{b,c\}$, and consider the quantity $a_1+b+c$ minimum. Rewrite the equation $(1)$ as variable of $a_1$: $X^2-X.pbc+b^2+c^2-2p=0$, since it has a root $a_1$, it also has another $a_2$. By Viet, we have: $a_1+a_2=pbc$ and: $a_1a_2=b^2+c^2-2p$ Case 1 $b^2+c^2=2p$, this gives the answer all primes $p\equiv 1 \pmod 4$ (you can check it by replace: $a_1=pbc$) Case 2 $b^2+c^2>2p$, this gives: $a_2\in\mathbb{N}$ and thus, by the minimum assumption, we must have: $a_2\geq a_1$ Since: $a_1a_2=b^2+c^2-2p<2a_1^2$, hence: $2a_1>a_2$, since: $a_1+a_2=pbc$, we have: $3a_1>pbc$, since: $p\geq 3$, thus, $a_1>bc$ Since: $a_2\geq a_1$, thus, $b^2+c^2>b^2+c^2-2p=a_1a_2>b^2c^2$, which is contradition. Case 3 $b^2+c^2<2p$. This implies $a_2<0$ and it's a integer. We have: $a_1+a_2=bcp, so: a_1>pbc\geq p$ Since: $a_1.|a_2|=2p-b^2-c^2<2p$ If $|a_2|\geq 2$, then $a_1<p$, a contradition. So: $a_2=-1$, which gives: $p(2-bc)=b^2+c^2+1$, which gives: $b=c=1$ and $p=3$
12.11.2017 17:23
Sniped ._. Answer. $p=3$ and $p\equiv 1\pmod{4}$. Solution.