How to mathematically represent my equation?

I want to say "for all k from 1, 2,...B that are not elements of the vector S. What is the best/most professional way to represent this? Is there a better way to represent it than

Thanks,

Kevin

• Is the question about typesetting, or math notation? – Steven B. Segletes Oct 28 '15 at 17:50
• I'm just looking for help from anyone kind enough to give some advice. I've gotten a lot of helpful answers about a wide range of topics on this site over the past few months. – KevinB Oct 28 '15 at 18:06
• What is the advice you're seeking about: is it about math notation, or is it about how to implement a certain notational choice using (La)TeX? – Mico Oct 28 '15 at 18:07
• Some more context is needed; what do you mean by a “vector”? Normally a vector has no elements, so I can't see what k\notin\mathbf{s} is supposed to mean. – egreg Oct 28 '15 at 18:17
• For $k=1,2,\dots,B$, provided $k$ does not appear in the vector $\mathbf{s}$. Using symbols at any cost is not recommendable. – egreg Oct 28 '15 at 18:21

I would try

for $k\in\{1,2,\dots,B \mid k\not\in \mathbf{s} \}$.


Presumably, B is an integer and \mathbf{s} is a set of integers ranging from 1 to B, right?

• This is one way to disambiguate it. – cfr Oct 28 '15 at 18:12
• Thanks, I really like this notation. It looks much more professional. – KevinB Oct 28 '15 at 18:14
• Sorry, I cat find no sensible mathematical meaning in this notation. – egreg Oct 28 '15 at 18:17
• @egreg - I was hoping the OP would clarify what k\not\in\mathbf{s} is supposed to mean. – Mico Oct 28 '15 at 18:18
• You are correct that s is a set of integers and B is a integer – KevinB Oct 28 '15 at 18:20

Correct would be something like $1 \le k \le B$, $k \notin S$. Elipses are ambiguous...

Don't try to reduce everything to symbols, that easily turns into utter gibberish. What you write is for humans to understand, symbols (particularly less familiar ones) just stand in the way.