I wonder how to display the following sequence.
What I tried: (I am not to concered about about the type of brackets (curly, round, ...) but I would really like to have all of them in my equation...)
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
1
\underbrace{
\underbrace{,}_{6}
7
\underbrace{,}_{10}
}_{4}
17
\underbrace{
\underbrace{,}_{14}
31
\underbrace{,}_{18}
}_{4}
49
\]
\end{document}



,between the&&of the first line if you want (but I didn't like them:-) – David Carlisle May 30 '19 at 11:14