1

I'm trying to type the following sequence recursively on Overleaf but I'm not exactly sure how to format it exactly as it is shown below. More specifically, I need help on how to type the info past the left brace.

enter image description here

imnothere
  • 14,215

1 Answers1

4

You can define a new type of cases using mathtools:

\documentclass{article}
\usepackage{mathtools}

\makeatletter \newcases{centercases}{\quad} {\hfil$\m@th\displaystyle{##}$\hfil} {$\m@th\displaystyle{##}$\hfil}{\lbrace}{.} \makeatother

\begin{document}

[ a_{n}= \begin{centercases} 1 & n=1 \ a_{n-1}+4 & n>1 \end{centercases} ]

\end{document}

enter image description here

However, the output obtained with cases is more frequently used:

enter image description here

egreg
  • 1,121,712