4
$\begingroup$

How can I find the minimum value of $|5^{4m+3}-n^2 |$ for positive integers $n,m$.

Is there any short answer for this problem?

$\endgroup$
2
  • $\begingroup$ $m=1,n=280,|5^{4m+3}-n^2|=275$ $\endgroup$ Jun 25, 2014 at 5:58
  • 1
    $\begingroup$ The minimum is indeed $275$ but I do not see a short, mathematics-free way to prove this…. $\endgroup$ Jun 26, 2014 at 1:48

2 Answers 2

1
$\begingroup$

$$|5^{4m+3}-n^2| = |5^{4m} 125 - k^2 5^{4m}| = 5^{4m} |125-k^2|$$

The minimum is 4 when $m=0$ and $k=11$.

$\endgroup$
2
  • 2
    $\begingroup$ The question says $m,n$ have to be positive integers. But if OP meant non-negative, then this is correct. $\endgroup$
    – JimmyK4542
    Jun 25, 2014 at 6:26
  • $\begingroup$ Yes, you are right! $\endgroup$
    – mike
    Jun 25, 2014 at 6:30
1
$\begingroup$

Finally I found a simple proof for all non-negative integers $n,m.$

Clearly for $m=0,n=11$ we have $|5^{4m+3}-n^2 |=4.$
Then we only need to check the four cases $|5^{4m+3}-n^2 |=0,1,2,3.$

Note that $n^2≡0,1,4,5,6,9\mod10$ and $5^{4m+3}≡5\mod10 $ for any $n,m\in\Bbb{Z}_0^+.$
Hence only possible values for the last digit of $|5^{4m+3}-n^2 |$ are $0,1,4,5.$
Therefore remains are the cases $|5^{4m+3}-n^2 |=0,1.$

Note that for any $m\in\Bbb{Z}_0^+,$ $$5^{4m}≡625\mod10000,\\ 5^{4m+1}≡3125\mod10000,\\ 5^{4m+2}≡5625\mod10000,\\ 5^{4m+3}≡8125\mod10000.$$ Hence $5^{4m+3}$ always have the last digits as $8125.$
Suppose $n^2$ have the last three digits $125.$
Then $n$ is of the form $n=10k+5$ for some positive integer $k.$ $$100k^2+100k+25=1000l+125,\\ k(k+1)=10l+1.$$ Since LHS is always even this is a contradiction.
Hence $|5^{4m+3}-n^2 |\not=0$ for any $n,m\in\Bbb{Z}_0^+.$

Can we find $n\in\Bbb{N}$ such that $n^2≡8126\mod10000$ or $n^2≡8124\mod10000$?
There are no integers whose squares last two digits are $26.$ $$n^2≡24\mod100 \iff n≡\pm 18\mod50.$$ $$n^2≡124\mod1000 \iff n≡\pm 182\mod500.$$ But note that $n^2≡8124(\mod10000)\implies n$ is even and $n^2/4≡2031\mod2500.$
There is no integer with last two digits of the square is $31.$
Hence $|5^{4m+3}-n^2 |\not= 1$ for any $n,m\in\Bbb{Z}_0^+.$

Therefore $$\min_{n,m∈Z_0^+ }⁡|5^{4m+3}-n^2 |=4.$$

$\endgroup$
1
  • $\begingroup$ Just use mikes final expression, and for $m > 0, 5^{4m} > 1$ and $|125-k^{2}| > 4$ for all $k \neq 11$. None of this necessary. $\endgroup$
    – Derek Luna
    Dec 10, 2021 at 5:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .