A function $f: \mathbb{Q}^+ \cup \{0\} \to \mathbb{Q}^+ \cup \{0\}$ is defined such that $$ f(x) + f(y) + 2xyf(xy) = \frac{f(xy)}{f(x+y)}$$ Then what is the value of $\left[f(1)\right]$ (where $[.]$ denotes the greatest integer function)?
I proceeded this way:
Putting $x=y=0$ I got $f(0) = \frac{1}{2}$ (assuming $f(0) \neq 0$)
Again putting $y=0$ I got $f(x) + f(0) = \frac{f(0}{f(x)}$ which gave 2 values of $f(x)$ as $-1$ and $\frac{1}{2}$.
As $f(0)$ was equal to $\frac{1}{2}$ so I assumed $f(x)$ as a constant function having value $\frac{1}{2}$ for all $x$.
When $f(0) = 0$ then I got $f(x) = 0$ for all $x$.
But the answer was given to be equal to $1$ which means $f(1) \in [1,2)$. Where am I wrong?