TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would one typeset basic combinatorics, like variation and combination?

For example, when using \(V'_n^k\) for variation with repetition, n and k are not vertically aligned. Something like \(V'\begin{smallmatrix}k\\n\end{smallmatrix}\) comes close, but the spacing is a little to wide, and it isn't left-aligned.

So, what's the best or usual way to do this? (Preferably also working with MathJax.)

share|improve this question
Have you tried \({V'}_n^k\)? – Mico Jan 6 '12 at 2:55
Mico, thank you, that works! (I even remember thinking about it, but somehow I managed to forget about giving it a try.) Will you make that an answer, so I can accept it? – danlei Jan 6 '12 at 3:15
up vote 8 down vote accepted

I suggest the following code:

\( {V'}_n^k \)
share|improve this answer
No problem. Let's just delete our comments; you go first. – Mico Jan 6 '12 at 10:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.