# Writing in set builder notation

I need to write following set in to set builder notation.

$\{ 0,3,6,9,12 \}$

Solution which I found on internet is:

$\{3x\;|\;\text{where }x\text{ is an integer and }0\leq x \leq 4\}$

What I thought is :

$\{x\;|\;x\text{ is multiple of }3\text{ and }0\leq x \leq 12\}$

Now which one is correct? or none of the above?

• I think you mean $\{x \mid x \text{ is a multiple of 3 and }0\leq x \leq 12\}$? If this is the case, then both are correct. – D. N. Apr 4 '14 at 4:46
• yes that is mistake,going to update – user3461957 Apr 4 '14 at 4:47
• $\{ x : x \in \{ 0, 3, 6, 9, 12 \} \}$ – Justus87 Apr 4 '14 at 10:39

• $\{x\mid x=0\text{ or }x=3\text{ or }x=6\text{ or }x=9\text{ or }x=12\}$.
• $\{6+3x\mid x\in\mathbb Z\text{ and }-2\leq x\leq2\}$.