How do I write the mathematical degree of a root

Try doing $ b = \sqrt[n]{a}$ as suggested here: How to write roots other than square roots in MathJax? - Mathematics Meta Stack Exchange