# How can I write underneath the equation “b+b+…+b” n-times? [duplicate]

I am new to LaTex, I am using a Overleaf. I'm trying to write the equation

n\times b= b+b+...+b


with 'n-times' in the bottom.

• Off-topic: There's no need for the hyphen character between "n" and "times". Just write n \text{times} and you'll be fine. – Mico Apr 20 '19 at 16:23
• Doesn't merely "n" suffice? – GermanShepherd Apr 20 '19 at 16:25

Like this?

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$n\times b=\underbrace{b+b+\cdots+b}_{n\textup{-times}}$$
\end{document}


You might replace \cdots with \ldots. See also When to use \dots, \ldots, \cdots, and blanks? and \dots versus \ldots - is there a difference?. Please read Mico's comment.

• @JouleV I am sorry, I do not see that \cdots does not correspond to the posted image. – CampanIgnis Apr 20 '19 at 16:26

Is this what you are asking for?

\usepackage{amsmath}
\begin{document}
$$n \times b=\underbrace{b+b+\ldots+b}_{n}$$
\end{document}