Denote by $P(n)$ the greatest prime divisor of $n$. Find all integers $n\geq 2$ for which \[P(n)+\lfloor\sqrt{n}\rfloor=P(n+1)+\lfloor\sqrt{n+1}\rfloor\]
Problem
Source: Baltic Way 2015
Tags: polynomial, algebra, number theory
08.11.2015 19:10
10.11.2020 13:43
Nice Problem.
12.11.2020 18:41
We begin with rewriting original relation as follows: $$ \lfloor\sqrt{n}\rfloor - \lfloor\sqrt{n+1}\rfloor\ = P(n+1) - P(n) $$It is easy to see that $\lfloor\sqrt{n}\rfloor - \lfloor\sqrt{n+1}\rfloor\ $ is $0$ or $-1$. It can't be $0$, since then we have that $n+1$ and $n$ have the same largest prime divisor of $p$, which implies that $p \mid n+1 - n = 1$,which is clearly contradiction. So we know that $P(n+1)-P(n) = -1$. Observe that it is impossible that both $n$ and $n+1$ has odd largest prime divisor, because the $P(n+1) - P(n)$ is even , which is clearly contradiction. If $P(n) = 2$, then $P(n+1) = 1$, which is clearly impossible. This implies that $n+1 = 2^x$ and that $n = 2^z 3^y$. Observe that $z =0$ thus we are left to solve equation: $$ 3^y+1 = 2^x $$in positive integers. Looking at both sides $\pmod 4$ yields that $x$ is even. This implies that: $$ 3^y = (2^{\frac{x}{2}} -1)(2^{\frac{x}{2}} + 1) $$But this impossible that $2^{\frac{x}{2}} -1$ and $2^{\frac{x}{2}} + 1$ are powers of $3$. Consequently $n=3$ and we are done.
01.06.2021 14:30
Nice problem!
01.06.2021 15:37
14.08.2021 00:35
Let $\lfloor \sqrt{n}\rfloor =r$, thus $r\leq \sqrt{n}< r+1$. Furthermore we have and $r^2<r^2+1\leq n+1<(r+1)^2+1<(r+2)^2$, thus either $\lfloor \sqrt{n+1}\rfloor =r$ or $\lfloor \sqrt{n+1}\rfloor =r+1$. If $\lfloor \sqrt{n+1}\rfloor =r$, then we must have $P(n)=P(n+1)$, which is impossible, as $n$ and $n+1$ do not share any prime divisors. Thus, we must have $\lfloor \sqrt{n+1}\rfloor =r+1$. Hence, we conclude that $n+1=(r+1)^2$ and our equation takes the following form: $$P(r(r+2))=1+P(r+1)^2).$$Now the only primes that differ by $1$ are $2,3$, we must have $P(r(r+2))=3$ and $P((r+1)^2)=2$. We conclude that $r+1=2^l$ and $r(r+2)=3^s$. Furthermore, $4^l-3^s=1$. By Catalan's conjecture, there are no solutions if $l,s\geq 2$. Therefore, $l=s=1$ and hence $r=1\impliesĀ \boxed{n=3}$. We are done.