Sequences and real functions are closely linked: a sequence can be seen as the restriction to the natural numbers of a function of a real variable.

If (an)(a_n) arises from a function f:R>0Rf:\mathbb{R}_{>0}\to\mathbb{R} by restriction to the naturals, that is an=f(n)a_n = f(n), then the limit of the sequence ana_n coincides with the limit as x+x\to+\infty of the function, if the latter exists: limx+f(x)=L    limn+an=L.\lim_{x\to+\infty}f(x) = L \implies \lim_{n\to+\infty}a_n = L.

The converse, in general, is false: f(x)=sin(πx)f(x) = \sin(\pi x) has f(n)=0f(n) = 0 for every nNn\in\mathbb{N} (constant sequence, limit 00), but limx+f(x)\lim_{x\to+\infty}f(x) does not exist because ff oscillates.

Example — Computing a limit of a sequence via a function

an=nsin(1/n)a_n = n\sin(1/n). Consider f(x)=xsin(1/x)f(x) = x\sin(1/x) with x+x\to+\infty and substitute t=1/xt = 1/x (as x+x\to+\infty we have t0+t\to 0^+): f(x)=sintt1f(x) = \dfrac{\sin t}{t} \to 1. Hence an1a_n\to 1.

Topics: Sequences
Concepts: Limit of a sequence
Skills: Computing limits