Is this problem correctly stated? Substituting in x=f(y) you get
f(f(f(y))) = 3f(y)
so f(3y) = 3f(y)
This suggests a linear solution but then you get f(x)=sqrt(3)x which doesn't work since it's N -> N.