# [Tex/LaTex] How would one have an equation for an exponent

equations

How can I write 2^((n-1)/3) or anything similar in LaTeX? I am new to the whole thing, but I tried giving it a shot and it doesn't look the way I want it too. It looks like I am taking the 2 to the power of parenthesis, which is silly.

$2^{(n-1)/3}$
...or you could also try using \frac{numerator}{denominator}, as in
$2^{\frac{n-1}{3}}$