\begin{gather*} A = \left \{ a_1, a_2, ... , a_n, a_{n+1} \right \}. \end{gather*}
in-context