Find the smallest prime number $p$ that cannot be represented in the form $|3^{a} - 2^{b}|$, where $a$ and $b$ are non-negative integers.
Problem
Source: China TST 1995, problem 1
Tags: modular arithmetic, number theory
18.05.2005 03:32
I think it is $17$, however I havent checked all the cases, what one should try is to look what pairs $(a,b)$ modulo 16, give $3^a-2^b$ a multiple of 17, and show using factorizations, modulo 5, modulo 11, modulo 16, or more, to show they have more factors or the equivalence is not truth!
04.12.2005 11:32
17=81-64... however, it looks like 37 does not work. The idea to prove it should be the same, still.
04.12.2005 12:52
$37=|27-64|$ However, I can prove that 41 cannot be represented in form $|3^{a}-2^{b}|$
17.09.2007 02:32
I think it's 3. For it to be 3, 2^b would need to be a multiple of 3. You can factor out a 3 from 3^a making it 3^(a-1) * 3. To get 3, 2^b would need to become (3^(a-1) +/-1) * 3 and because 2^b is not a multiple of 3, this could never occur.
17.09.2007 03:05
da-kid wrote: I think it's 3. For it to be 3, 2^b would need to be a multiple of 3. You can factor out a 3 from 3^a making it 3^(a-1) * 3. To get 3, 2^b would need to become (3^(a-1) +/-1) * 3 and because 2^b is not a multiple of 3, this could never occur. Be careful! The nonnegative integers include 0, so $ 3=|3^{0}-2^{2}|$ can be represented.
26.05.2014 03:33
This is not a comment.
26.05.2014 04:01
Yes. |2^5-3^1|
13.08.2014 06:09
14.08.2014 17:21
Sorry everybody
14.08.2014 17:27
Actually it is pretty easy to show that it is the smallest because \begin{eqnarray*} 37&=& 64 - 27\\31&=& 32 - 1\\29&=& 32 - 3\\23&=& 32 - 9\\19&=& 27 - 8\\17&=& 81 - 64\\13&=& 16 - 3\\11&=& 27-16\\7&=& 16-9\\5&=& 9-4\\3&=& 4-1\\2&=& 3-1 \end{eqnarray*}
14.08.2014 18:14
FINNN wrote: Hey mathtastic, now that you no longer have a nice list of solutions for $p<41$, I see you've "made a claim". Unfortunately, if you were to submit this proof for an olympiad asking "what is the smallest", you would get perhaps 50% of the possible points. Proving something to be a solution is quite trivial compared to showing that it is the smallest. You'll have to rethink your proof. Why don't you try the problem yourself? AkshajK just showed how simple it is to make all of the smaller primes. With 41 you get stuck so make a claim and prove it. It isn't trivial to prove but it is trivial to verify all smaller primes work.
09.06.2015 05:01
Notice that $b=5$ $a=2(log_3(i)+1)$ proves that $41$ is indeed possible!
09.06.2015 08:19
a and b are non-negative integers, not complex numbers.
04.03.2021 03:57
AkshajK wrote: Actually it is pretty easy to show that it is the smallest because \begin{eqnarray*} 37&=& 64 - 27\\31&=& 32 - 1\\29&=& 32 - 3\\23&=& 32 - 9\\19&=& 27 - 8\\17&=& 81 - 64\\13&=& 16 - 3\\11&=& 27-16\\7&=& 16-9\\5&=& 9-4\\3&=& 4-1\\2&=& 3-1 \end{eqnarray*} Hi! We need to show that 41 is the smallest value of $p$ satisfying the condition. Suppose that $|3^a-2^b|=41$ So we have two cases: 1) $3^a-2^b=-41$. \begin{align*} 2^b-3^a&=41\\ 2^b-3^a&=2^5+3^2\\ 2^b-2^5&=3^a+3^2>0 \end{align*} So, $b>5$. That implies $32|3^a+3^2$. Thus $8|3^a+3^2$, wich is equivalent to $3^a+3^2\equiv 0\mod 8$. But \begin{align*} 3^a+3^2&\equiv 0\mod 8\\ \iff 3^a&\equiv -3^2\mod 8\\ \iff 3^a&\equiv 7 \mod 8 \end{align*} And the last equation is false, because $3^{a}\equiv 1\mod 8\lor 3^{a}\equiv 3\mod 8$. 2)$3^a-2^b=41$ \begin{align*} 3^a-2^b&=41\\ 3^a-2^b&=2^5+3^2\\ 3^a-3^2&=2^b+2^5>0 \end{align*} So, $a>2$. That implies $9|2^b+2^5$, wich is equivalent to $2^b+2^5\equiv 0\mod 9$. It's easy to see that this only happens when $b=6k+2$ for some integer $k$ (because $2^6\equiv 1\mod 9$). Finally: \begin{align*} 3^a-3^2&\equiv 2^5+2^b \mod 13\\ \iff 3^a&\equiv 3^2+2^5+\left(2^6\right)^k 2^2\mod 13\\ \iff 3^a&\equiv 9+6+\left(1\right)^k 4\mod 13\\ \iff 3^a&\equiv 6\mod 13 \end{align*} And the last equation is false, because $3^{a}\equiv 1\mod 13\lor 3^{a}\equiv 3\mod 13\lor3^{a}\equiv 9\mod 13$. Sorry if my english is not perfect.... Please tell me if I am wrong.
04.03.2021 05:01
mathtastic wrote:
Amazing solution!
04.03.2021 05:58
"Try this problem, it's a better one out of the oly problems on the handout"- Math Circle *Some time later* "I finished the problem, can you go over it at the end"-me "Lol you did that dumb problem"- Math Circle