Is there a difference infinite sequences and functions

functionssequences-and-series

Is there a difference infinite sequences (all elements are natural numbers) and functions ?

I mean for example,

Is the infinite sequence $$a_n=\left\{0,1,0,1,0,1 \cdots \right\}$$ equal to $$f(n) = \frac 12 ((-1)^n + 1) ? $$

Best Answer

There is not. Most people define sequences as functions from the natural numbers, $0,1,2,3,\ldots$

You can see this on the Wikipedia page and in almost any "higher level" mathematics textbook which defines sequences.

In your notation, instead of $a_{n}$ some authors may even write $a(n)$ to make this clear.

Related Question