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.
Asked
Active
Viewed 1,296 times
1
-
2this seems to be a general tex question unrelated to overleaf specifically. – David Carlisle Jan 24 '21 at 21:12
1 Answers
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}
However, the output obtained with cases is more frequently used:
egreg
- 1,121,712


