who said $n$ must be 2? for example put $a(x)=x^n, \ b(x)=(x+1)^n,$ where $n$ is whatever you like. there must be something missing in your problem.