Let $N$ be the set of natural number. Find all functions $f: \mathbb N \to \mathbb N$ , such that the number $(m+f(n))(n+f(m))$ is perfect square for all natural numbers $m$ and $n$.
I was unable to solve this problem so I need a solution to it, I know that the condition that $(m+f(n))(n+f(m))$ is a perfect square would imply that if $n = m$ then $f(n) = f(m)$ but how would that help me in solving the problem?
In this question, you can prove that the function is not a polynomial. Let's say that $g(x)=a_0+a_1x+a_2x^2+....+a_kx^k$. Now, let us choose n=1 and $m=a_0+a_1+a_2+....+a_k$. Now, your expression becomes $(m+a_0+a_1+.....a_k)*(1+a_0+a_1m+a_2m^2+....+a_km^k)=(m+m)*(1+a_0+a_1m+a_2m^2+....+a_km^k)$.
Now, this expression is a perfect square. So, either m is itself a perfect square or the number in the second bracket is divisible by m. Let's suppose that m is not a perfect square. It would mean that $a_0+1$ is divisible by m .This would imply that $a_0+1>=m$. Substituting the value of m , you would get $a_1+a_2+....a_k<=1$. Now, it's simple to prove that either $a_1=1$ or all are zero. If any other coefficient was 1, then you can choose n=1 and easily see that the expression won't form a perfect square for every m by using the identity $m^k+1^k=(m+1)*(....)$.
Now, suppose m is a perfect square.But you could also take m as being $(a_0+a_1+a_2+....+a_k)^2$ which would have given you that the second bracket is divisible by either $(a_0+a_1+a_2+....+a_k)$ or $(a_0+a_1+a_2+....+a_k+1)=t(let's\ say)$ as both cannot be perfect squares. Now, t is not a perfect square. The second bracket dividing $t$ would imply that $1+a_0-a_1-a_2-....-a_k \equiv 0(mod(t))$. After simplifying using the expression of t, you will get $2*(1+a_0)\equiv 0(mod\ t)$.The rest of the proof follows from above.