Consider the sequence $ \ \large \ a_n=\frac{1}{4^{\left\lfloor \frac{n}{2} \right\rfloor}+(k+1) \ mod \ 2} \ $ .
Find the order of convergence and rate of convergence .
Answer:
From the definition of the sequence the first few terms are $ 1/2,1, 1/5, 1/4, 1/17, 1/16 , 1/65, 1/64 ,....... \ $
Thus
$ \large \lim_{n \to \infty} \frac{a_{n+1}}{a_n} <1 \ $ as well as $ \ \large \lim_{n \to \infty} \frac{a_{n+1}}{a_n} >1 \ $
We know that if $ \lim_{n \to \infty} \frac{a_{n+1}}{a_n} <1 \ $ , then the convergence is linear and if $ \lim_{n \to \infty} \frac{a_{n+1}}{a_n} >1 \ $ , then the sequence will be divergent .
I am getting confused here. which one is correct ?
The rate of convergence is given by
$ \large \lim_{n \to \infty} \frac{a_{n+1}}{a_n} \\ =\lim_{n \to \infty} \frac{4^{\left\lfloor \frac{n}{2} \right\rfloor}+(n+1) \ mod \ 2}{4^{\left\lfloor \frac{n+1}{2} \right\rfloor}+(n+2) \ mod \ 2} \\= ? $
I am unable to determine right here also.
Please help me out.