sequence with brackets

How to get the output like this with Latex?

• Try: $\{w_t, r_t\}_{t=0}^\infty$. This said, you should read an introductory book on latex as this is a really basic question....
– user30471
Dec 2, 2017 at 13:54

$\{\omega_t, r_t\}_{t=0}^\infty$