Search code examples
mathjax

What is the MathJax code for an index notation (n over k)


What is the MathJax code required to properly format an index notation for Pascal's Pyramid like so: N over K

The cheatsheet here at MetaStackoverflow has not yielded me results.


Solution

  • You can use a simple matrix.

    \begin{pmatrix}
       n \\
       k
    \end{pmatrix}
    

    This will generate the wanted result.