The question title pretty much says it all.
In derivations where there's some fancy footwork being done with indices, I find expressions like
$$\sum_{i \neq k} x_i$$
a bit too vague. On the other hand, this is explicit enough, but just too unwieldy and awkward-looking:
$$\sum_{i \in \{0, 1, \dots,k-1,k+1,\dots,n-1,n\}} x_i$$
(Of course, I can invent my own notation, but I consider this the "the nuclear option.")