Simply substitute in $\displaystyle n:=3m$, and evaluate using the fact that $\displaystyle (ab)^x = a^xb^x$.