So I have this latex code
\underbrace{
a^{\frac{1}{n}} \cdot a^{\frac{1}{n}} \cdot \ldots \cdot a^{\frac{1}{n}}
}_{n\text{-times}}} =
a^{
\underbrace{
\frac{1}{n} + \frac{1}{n} + \ldots + \frac{1}{n}
}_{n\text{-times}}
} =
a^{1} = a
that renders in this formula:

but as you can see the second summation in the exponent is rendered too big.
How to typeset it correctly?

\underbrace{\scriptstyle...}_{n\text{ times}}(no hyphen, in my opinion). – egreg Mar 03 '15 at 18:04