2

I need a set-builder notation for $\{1 , 3 , 5 , -7 , -9 , -11 , 13 , 15 , 17 , \ldots\}$. It is an infinite set of odd positive integers, which are multiplied by $-1$ three by three. One of the terms of this question is not to use floor function.

Asaf Karagila
  • 393,674

7 Answers7

1

Well, no doubt you are hoping for something cleverer than this, but:

$$ \{\,a\mid\exists k\in \mathbb {N}_{0}:(\exists m \in \{1,3,5\} :a = m+12k)\vee (\exists m \in \{-7,-9,-11\} :a = m-12k)\,\}$$

which I suddenly realized is actually

$$ \{\,a\mid\exists k\in \mathbb {Z}:(\exists m \in \{1,3,5\} :a = m+12k)\,\}$$

Joffan
  • 39,627
0

With the convention $0 \in \mathbb{N}$, you can also write this:

$$(\{1,3,5\}+12\mathbb{N}) \cup (\{-7,-9,-11\}+(-12)\mathbb{N})$$

goblin GONE
  • 67,744
0

Define $f:\mathbb{N} \to \mathbb{Z}$ as follows. $f(1) = 1$, $f(2) = 3$ $f(3) = 5$ and $$f(n) = -\text{sgn}(f(n-3))\cdot(2n-1)$$

for $n \geq 4$

Then this set is $\{c \in \mathbb{Z}: \exists n \in \mathbb{N} \ \text{such that} \ f(n) = c\}$. That is, the set is the image of the function.

0

$$\left\{(-1)^{\lfloor n/3\rfloor}(2n+1)\mid n\in\mathbb N\right\}$$

Or, if you are using a finicky notion of set-builder notation:

$$\left\{x\in\mathbb Z\mid \exists n\in\mathbb N\left[x=(-1)^{\lfloor n/3\rfloor}(2n+1)\right]\right\}$$

Thomas Andrews
  • 177,126
0

For $n\in\mathbb{N}$, $\cos(n\pi/3)$ is never $0$. It oscillates from being positive for three consecutive terms, then negative for three. Using this, one way to express your sequence is $$a_n=\frac{\cos\left(\frac{(n-2)\pi}{3}\right)}{\left\lvert\cos\left(\frac{(n-2)\pi}{3}\right)\right\rvert}(2n-1)$$ As a set in set-builder notation, you have $$\left\{\frac{\cos\left(\frac{(n-2)\pi}{3}\right)}{\left\lvert\cos\left(\frac{(n-2)\pi}{3}\right)\right\rvert}(2n-1)\middle| n\in\mathbb{N}\right\}$$

Of course there is nothing more fundamental about the absolute value function than the signum function, so another way to express this is:$$\left\{\operatorname{sign}\left(\cos\left(\frac{(n-2)\pi}{3}\right)\right)(2n-1)\middle| n\in\mathbb{N}\right\}$$

2'5 9'2
  • 54,717
0

If you are allowed to use square roots, then something like: $$\left\{(2n+1) \cdot(-1)^{\tfrac{1}{\sqrt{5}} \left(\left(\tfrac{1+\sqrt{5}}{2}\right)^{n-1} - \left(\tfrac{1-\sqrt{5}}{2}\right)^{n-1}\right) - (n-1)} \big| n \in \mathbb{N}\right\}$$ will work. (Here, we use the convention that $0 \in \mathbb{N}$.)

This answer has the advantage that it doesn't use the floor/ceiling functions, modular arithmetic, or trigonometric functions (as OP requested), but the downside is that it's complicated.

JimmyK4542
  • 54,331
  • In the Islamic republic of Iran where the asker began $0$ is not a natural number but we have another set $w$ that contains $0$ and all natural numbers.It would better to write $n\in w$ it would be more helpful to the asker who is from Islamic republic of Iran. – Taha Akbari Jul 04 '16 at 14:20
  • @JimmyK4542 can you add a description please ? i computed this using some high precision softwares and it is correct . –  Jul 08 '16 at 12:51
  • 1
    hint:It uses fibonacci numbers. – Taha Akbari Jul 09 '16 at 12:51
0

$a_n=\operatorname{sgn}(\Im(e^{(2n+1)i\pi/12})$ where $sgn$ is the Signum function

and$\Im$ is the imaginary part of a complex number.

Taha Akbari
  • 3,559