xleftarrow and xrightarrow produce arrows that extend automatically to accommodate unusually wide subscripts or superscripts. These commands take one optional argument (the subscript) and one mandatory argument (the superscript, possibly empty):

\xleftarrow{n+\mu-1}\quad \xrightarrow[T]{n\pm i-1}