I've used $f^n$ when there is no confusion with $f(x)^n$.
I've seen $f^{\circ n}$ to emphasize composition.