Where i=sqrt(-1), either would do.
Without proper constraints, the problem is trivial. The fact that the variable is called 'n' means nothing.
OTOH, if f is integer-valued and of an integer variable,
f(0)=0
f(2n)=-(2n-1)
f(2n-1)=2n
f(-(2n-1))=-2n
f(-2n)=2n-1
Unless I am pretty confused (which may be).The difficult one is f(f(n))=n^2.