How to write in mathematical symbols the expression "range over"

1.7k Views Asked by At

My question is really simple, how can I write symbolically this phrase:

$x=\sum a_mx^m$ where $m$ range over $\{1,\ldots,g\}\setminus\{t_1,\ldots,t_u\}$

Being more specific, I would like to know how to write with mathematical symbols this part: "range over $\{1,\ldots,g\}\setminus\{t_1,\ldots,t_u\}$"

Thanks

2

There are 2 best solutions below

6
On

Often we see something like$$x=\sum_{m\in\{1,\ldots,g\}\setminus\{t_1,\ldots,t_u\}} a_mx^m$$

2
On

I'd suggest $$\Large x=\sum_{\substack{m=1\\[0.1cm] m\,\notin\, \{t_1,\,\ldots\,,\,t_u\}}}^g a_mx^m$$