Subtraction of elements in sets

Let A be a set of finite elements.

$A=\{1,2,3,4,5\}$

If I want to remove one element and show I removed one element, how should I do?

Pseudo mathematical notation:

$A - \{2\} = \{1,3,4,5\}$

Thank you very much!

n


Your notation above is actually used in set theory.

In general if you have two sets $A$ and $B$, the difference $A - B$ is the set

$A - B = \{x \in A : x \notin B\}$

Also, note that $\{1, 2, 3, 4, 5\} - \{2, 6\} = \{1,3,4,5\}$. $B$ need not be a subset of $A$.