[Tex/LaTex] How to typeset elementary combinatorics

amsmathmath-mode

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.)

Best Answer

I suggest the following code:

\( {V'}_n^k \)