All right, so my Professor claims that it is impossible to find a vector field that has both div and curl zero and yet vanishes at infinity (that is, becomes the zero vector).
I don't know if it is correct. I decide to trust my professor and check for myself.
So I conclude that,
if the vector field is $\vec{F} =\vec{F_1} \hat{i}+\vec{F_2} \hat{j}+\vec{F_3} \hat{k} $, then,
$$\frac{\partial F_1}{\partial x}+\frac{\partial F_2}{\partial y}+\frac{\partial F_3}{\partial z}=0$$ $$\text{and}$$
$$\frac{\partial F_1}{\partial y}=\frac{\partial F_2}{\partial x},\frac{\partial F_1}{\partial z}=\frac{\partial F_3}{\partial x},\frac{\partial F_2}{\partial z}=\frac{\partial F_3}{\partial y}$$
I have no idea how to combine all of these to get the required result. We haven't been taught differential equations yet.
Any ideas and hints are much appreciated.