Prove that there are not intgers $a$ and $b$ with conditions, i) $16a-9b$ is a prime number. ii) $ab$ is a perfect square. iii) $a+b$ is also perfect square.
Problem
Source: AZE JBMO TST
Tags: number theory, prime numbers, AZE JBMO TST
02.05.2015 19:48
First $ab \geq 0$ and $a+b\geq 0$ leads to $a$ and $b$ are nonnegative integers. Let $d=\gcd(a,b)$ so $a=dx, b=dy$ and $16a-9b=d(16x-9y)$ is prime so $d=1$ or $16x-9y=1$ -If $16x-9y=1$ then $x=9n+4$ and $y=16n+7$ for some integer $n$ thus $ab=d^2(9n+4)(16n+7)$ is a perfect square so $(9n+4)(16n+7)=\frac{(127+288 n)^2-1}{576}=m^2$. This gives us $(127+288 n)^2-1=(24m)^2$ which it is a contradiction. -If $d=1$, since $ab$ is a perfect square then both $a$ and $b$ are perfect squares. Let $a=m^2, b=n^2$ for non negative integers $m,n$. Hence $16a-9b=(4m-3n)(4m+3n)$ is a prime thus $4m-3n=1$ so $m=3k+1$ and $n=4k+1$ for some integer $k$ and in this case $a+b=(3k+1)^2+(4k+1)^2=\frac{(7+25k)^2+1}{25}$ cannot be a perfect square. By the same way if $4m-3n=-1$ then $m=3k+2, n=4k+3$ and in this case $a+b=\frac{(18+25k)^2+1}{25}$ cannot be a perfect square.
02.05.2015 20:06
This was a very nice problem For this problem, a useful property is a perfect square is congruent to 0 or 1 mod 4.
EDIT: Sniped :p (by longer than I thought)
02.05.2015 20:11
Again, noting the first solution from $ab \ge 0$ and $a+b \ge 0$ we have that $a$ and $b$ are non-negative integers. We proceed by contradiction. Assume there is such a solution. Then we have that $a+2\sqrt{ab}+b = (\sqrt{a}+\sqrt{b})^2$ must be an integer and similarly $a-2\sqrt{ab}+b = (\sqrt{a}-\sqrt{b})^2$ must also be an integer. Thus for 2 non-negative integers $c$ and $d$ we must have $\sqrt{a}+\sqrt{b} = \sqrt{c}$ and $\sqrt{a}-\sqrt{b} = \sqrt{d}$. Thus $\sqrt{a} = \frac{\sqrt{c}+\sqrt{d}}{2}$ and $\sqrt{b} = \frac{\sqrt{c}-\sqrt{d}}{2}$. This implies $a=\frac{c+d+2\sqrt{cd}}{4}$ and $b=\frac{c+d-2\sqrt{cd}}{4}$. Replacing this into i we get that $16a-9b = \frac{7c+7d+14\sqrt{cd}}{4} = 7(\frac{c+d+2\sqrt{cd}}{4}) = 7a$. This implies that $a=b=1$. But this doesn't satisfy the third equation. Thus, there are no solutions.
31.05.2015 15:32
hypogean wrote: Again, noting the first solution from $ab \ge 0$ and $a+b \ge 0$ we have that $a$ and $b$ are non-negative integers. We proceed by contradiction. Assume there is such a solution. Then we have that $a+2\sqrt{ab}+b = (\sqrt{a}+\sqrt{b})^2$ must be an integer and similarly $a-2\sqrt{ab}+b = (\sqrt{a}-\sqrt{b})^2$ must also be an integer. Thus for 2 non-negative integers $c$ and $d$ we must have $\sqrt{a}+\sqrt{b} = \sqrt{c}$ and $\sqrt{a}-\sqrt{b} = \sqrt{d}$. Thus $\sqrt{a} = \frac{\sqrt{c}+\sqrt{d}}{2}$ and $\sqrt{b} = \frac{\sqrt{c}-\sqrt{d}}{2}$. This implies $a=\frac{c+d+2\sqrt{cd}}{4}$ and $b=\frac{c+d-2\sqrt{cd}}{4}$. Replacing this into i we get that $16a-9b = \frac{7c+7d+14\sqrt{cd}}{4} = 7(\frac{c+d+2\sqrt{cd}}{4}) = 7a$. This implies that $a=b=1$. But this doesn't satisfy the third equation. Thus, there are no solutions. you have a mistake,$16a - 9b = \frac{7c+7d+50\sqrt{cd}}{4}$.
18.06.2018 10:01
Here's a sketch of my solution: 1.Show $gcd (a,b)=1$ so we have $a=x^2,b=y^2$ and $x,y$ are coprime. 2.Use pytagorean(wrong spelling I think) triple to use the condition $a+b$ is a perfect square. 3.put $a,b$ in the first condition and factorize one sentence has to be $1$ use quadric formula to get a contradiction here too.
18.06.2018 11:21
I have a "not quadratic equation element stuff" solution that involves bounding because I am bad at discriminant bashing
Edit:Hole patched
18.06.2018 11:23
Devastator wrote: I have a no too long and "nearly bash free" solution that involves bounding
Brb First the gcd can be the prime itself second it asked us to show there are no solutions.
18.06.2018 11:37
Taha1381 wrote: First the gcd can be the prime itself second it asked us to show there are no solutions. Brb means be right back, sorry. Also, tnx for pointing that out, I'll try patching that hole up