-3
$\begingroup$

How can I write a power (n-1) subscript (n-1)

This is what is happening when I try $$(a_(n-1))^(n-1)$$ $$(a_(n-1))^(n-1)$$

$\endgroup$
3
  • 1
    $\begingroup$ $(a_{n-1})^{n-1}$ $\endgroup$
    – user876009
    Aug 22 at 7:02
  • 6
    $\begingroup$ Does this answer your question? MathJax basic tutorial and quick reference $\endgroup$
    – user876009
    Aug 22 at 7:03
  • 1
    $\begingroup$ Additionally, when you see an answer with a mathematical notation you don't know how to replicate, you may simply edit the answer to see the actual code. I learnt quite a few tricks this way. (conversely, it's not difficult to find an answer that exhibits the syntax you are asking for) $\endgroup$ Aug 23 at 6:42
1
$\begingroup$

You'll need curly braces {}. If you write $(a_{n-1})^{n-1}$ you get $(a_{n-1})^{n-1}$. You can use double dollars to get a centered formula; $$(a_{n-1})^{n-1}$$ gives $$(a_{n-1})^{n-1}.$$

If the subscript or superscript is only one character, you do not need them. For example: $a_2^\alpha$ and $a_{2}^{\alpha}$ give the same result: $$a_2^\alpha \qquad\text{vs.}\qquad a_{2}^{\alpha}.$$ The first one needs less characters (less typing).

The relevant part in MathJax basic tutorial and quick reference (current revision) is the point "5. Groups".

(This was already explained in comments. I thought that it might be worth to make this also into an answer.)

$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged .