I'm studying the Subsequences and I've stumbled across a question which I can't seem to make any sense of?
I don't understand how they got $(0,1,2,0,1,2,\ldots)$? I don't even understand how to use the function or what it means? What does {$0 \text{ if } n= 3k − 2$} even mean?
Let $\left(a_n\right)_{n\in\mathbb{N}}$ be defined as $$a_n=\cases{0,\quad \text{if } n=3k-2 &for some $k\in\mathbb{N}$,\\1,\quad \text{if } n=3k-1 &for some $k\in\mathbb{N}$,\\2,\quad \text{if } n=3k &for some $k\in\mathbb{N}$,\\}$$ That is, $$\left(a_n\right)_{n\in\mathbb{N}}=(0,1,2,0,1,2,0,1,2,0,1,2,\ldots)$$ The accumulation points of $\left(a_n\right)_{n\in\mathbb{N}}$ are $0$, $1$, and $2$.
$$a_1 = 0$$ since there exists an natural number $k$, namely $k = 1$, such that $1 = 3 \cdot 1 - 2$.
$$a_2 = 1$$ since there exists an natural number $k$, namely $k = 1$, such that $2 = 3 \cdot 1 - 1$.
$$a_3 = 2$$ since there exists an natural number $k$, namely $k = 1$, such that $3 = 3 \cdot 1$.
$$a_4 = 0$$ since there exists an natural number $k$, namely $k = 2$, such that $4 = 3 \cdot 2 -2$.
I'm sure you can continue the pattern.