## Problem Set: Sequences

Find the first six terms of each of the following sequences, starting with $n=1$.

1. ${a}_{n}=1+{\left(-1\right)}^{n}$ for $n\ge 1$

2. ${a}_{n}={n}^{2}-1$ for $n\ge 1$

3. ${a}_{1}=1$ and ${a}_{n}={a}_{n - 1}+n$ for $n\ge 2$

4. ${a}_{1}=1$, ${a}_{2}=1$ and ${a}_{n+2}={a}_{n}+{a}_{n+1}$ for $n\ge 1$

5. Find an explicit formula for ${a}_{n}$ where ${a}_{1}=1$ and ${a}_{n}={a}_{n - 1}+n$ for $n\ge 2$.

6. Find a formula ${a}_{n}$ for the $n\text{th}$ term of the arithmetic sequence whose first term is ${a}_{1}=1$ such that ${a}_{n - 1}-{a}_{n}=17$ for $n\ge 1$.

7. Find a formula ${a}_{n}$ for the $n\text{th}$ term of the arithmetic sequence whose first term is ${a}_{1}=-3$ such that ${a}_{n - 1}-{a}_{n}=4$ for $n\ge 1$.

8. Find a formula ${a}_{n}$ for the $n\text{th}$ term of the geometric sequence whose first term is ${a}_{1}=1$ such that $\frac{{a}_{n+1}}{{a}_{n}}=10$ for $n\ge 1$.

9. Find a formula ${a}_{n}$ for the $n\text{th}$ term of the geometric sequence whose first term is ${a}_{1}=3$ such that $\frac{{a}_{n+1}}{{a}_{n}}=\frac{1}{10}$ for $n\ge 1$.

10. Find an explicit formula for the $n\text{th}$ term of the sequence whose first several terms are $\left\{0,3,8,15,24,35,48,63,80,99\text{,… }\right\}$. (Hint: First add one to each term.)

11. Find an explicit formula for the $n\text{th}$ term of the sequence satisfying ${a}_{1}=0$ and ${a}_{n}=2{a}_{n - 1}+1$ for $n\ge 2$.

Find a formula for the general term ${a}_{n}$ of each of the following sequences.

12. $\left\{1,0,-1,0,1,0,-1,0\text{,… }\right\}$ (Hint: Find where $\sin{x}$ takes these values)

13. $\left\{1,\text{-}\frac{1}{3},\frac{1}{5},\text{-}\frac{1}{7}\text{,… }\right\}$

Find a function $f\left(n\right)$ that identifies the $n\text{th}$ term ${a}_{n}$ of the following recursively defined sequences, as ${a}_{n}=f\left(n\right)$.

14. ${a}_{1}=1$ and ${a}_{n+1}=\text{-}{a}_{n}$ for $n\ge 1$

15. ${a}_{1}=2$ and ${a}_{n+1}=2{a}_{n}$ for $n\ge 1$

16. ${a}_{1}=1$ and ${a}_{n+1}=\left(n+1\right){a}_{n}$ for $n\ge 1$

17. ${a}_{1}=2$ and ${a}_{n+1}=\frac{\left(n+1\right){a}_{n}}{2}$ for $n\ge 1$

18. ${a}_{1}=1$ and ${a}_{n+1}=\frac{{a}_{n}}{{2}^{n}}$ for $n\ge 1$

Plot the first $N$ terms of each sequence. State whether the graphical evidence suggests that the sequence converges or diverges.

19. [T] ${a}_{1}=1$, ${a}_{2}=2$, and for $n\ge 2$, ${a}_{n}=\frac{1}{2}\left({a}_{n - 1}+{a}_{n - 2}\right)$; $N=30$

20. [T] ${a}_{1}=1$, ${a}_{2}=2$, ${a}_{3}=3$ and for $n\ge 4$, ${a}_{n}=\frac{1}{3}\left({a}_{n - 1}+{a}_{n - 2}+{a}_{n - 3}\right)$, $N=30$

21. [T] ${a}_{1}=1$, ${a}_{2}=2$, and for $n\ge 3$, ${a}_{n}=\sqrt{{a}_{n - 1}{a}_{n - 2}}$; $N=30$

22. [T] ${a}_{1}=1$, ${a}_{2}=2$, ${a}_{3}=3$, and for $n\ge 4$, ${a}_{n}=\sqrt{{a}_{n - 1}{a}_{n - 2}{a}_{n - 3}}$; $N=30$

Suppose that $\underset{n\to \infty }{\text{lim}}{a}_{n}=1$, $\underset{n\to \infty }{\text{lim}}{b}_{n}=-1$, and $0<\text{-}{b}_{n}<{a}_{n}$ for all $n$. Evaluate each of the following limits, or state that the limit does not exist, or state that there is not enough information to determine whether the limit exists.

23. $\underset{n\to \infty }{\text{lim}}\left(3{a}_{n}-4{b}_{n}\right)$

24. $\underset{n\to \infty }{\text{lim}}\left(\frac{1}{2}{b}_{n}-\frac{1}{2}{a}_{n}\right)$

25. $\underset{n\to \infty }{\text{lim}}\frac{{a}_{n}+{b}_{n}}{{a}_{n}-{b}_{n}}$

26. $\underset{n\to \infty }{\text{lim}}\frac{{a}_{n}-{b}_{n}}{{a}_{n}+{b}_{n}}$

Find the limit of each of the following sequences, using L’Hôpital’s rule when appropriate.

27. $\frac{{n}^{2}}{{2}^{n}}$

28. $\frac{{\left(n - 1\right)}^{2}}{{\left(n+1\right)}^{2}}$

29. $\frac{\sqrt{n}}{\sqrt{n+1}}$

30. ${n}^{\frac{1}{n}}$ (Hint: ${n}^{\frac{1}{n}}={e}^{\frac{1}{n}}\text{ln}n$)

For each of the following sequences, whose $n\text{th}$ terms are indicated, state whether the sequence is bounded and whether it is eventually monotone, increasing, or decreasing.

31. $\frac{n}{{2}^{n}}$, $n\ge 2$

32. $\text{ln}\left(1+\frac{1}{n}\right)$

33. $\sin{n}$

34. $\cos\left({n}^{2}\right)$

35. ${n}^{\frac{1}{n}}$, $n\ge 3$

36. ${n}^{\frac{-1}{n}}$, $n\ge 3$

37. $\tan{n}$

38. Determine whether the sequence defined as follows has a limit. If it does, find the limit.

${a}_{1}=\sqrt{2}$, ${a}_{2}=\sqrt{2\sqrt{2}}$, ${a}_{3}=\sqrt{2\sqrt{2\sqrt{2}}}$ etc.

39. Determine whether the sequence defined as follows has a limit. If it does, find the limit.

${a}_{1}=3$, ${a}_{n}=\sqrt{2{a}_{n - 1}}$, $n=2,3\text{,… }$.

Use the Squeeze Theorem to find the limit of each of the following sequences.

40. $n\sin\left(\frac{1}{n}\right)$

41. $\frac{\cos\left(\frac{1}{n}\right)-1}{\frac{1}{n}}$

42. ${a}_{n}=\frac{n\text{!}}{{n}^{n}}$

43. ${a}_{n}=\sin{n}\sin\left(\frac{1}{n}\right)$

For the following sequences, plot the first $25$ terms of the sequence and state whether the graphical evidence suggests that the sequence converges or diverges.

44. [T] ${a}_{n}=\sin{n}$

45. [T] ${a}_{n}=\cos{n}$

Determine the limit of the sequence or show that the sequence diverges. If it converges, find its limit.

46. ${a}_{n}={\tan}^{-1}\left({n}^{2}\right)$

47. ${a}_{n}={\left(2n\right)}^{\frac{1}{n}}-{n}^{\frac{1}{n}}$

48. ${a}_{n}=\frac{\text{ln}\left({n}^{2}\right)}{\text{ln}\left(2n\right)}$

49. ${a}_{n}={\left(1-\frac{2}{n}\right)}^{n}$

50. ${a}_{n}=\text{ln}\left(\frac{n+2}{{n}^{2}-3}\right)$

51. ${a}_{n}=\frac{{2}^{n}+{3}^{n}}{{4}^{n}}$

52. ${a}_{n}=\frac{{\left(1000\right)}^{n}}{n\text{!}}$

53. ${a}_{n}=\frac{{\left(n\text{!}\right)}^{2}}{\left(2n\right)\text{!}}$

Newton’s method seeks to approximate a solution $f\left(x\right)=0$ that starts with an initial approximation ${x}_{0}$ and successively defines a sequence ${x}_{n+1}={x}_{n}-\frac{f\left({x}_{n}\right)}{{f}^{\prime }\left({x}_{n}\right)}$. For the given choice of $f$ and ${x}_{0}$, write out the formula for ${x}_{n+1}$. If the sequence appears to converge, give an exact formula for the solution $x$, then identify the limit $x$ accurate to four decimal places and the smallest $n$ such that ${x}_{n}$ agrees with $x$ up to four decimal places.

54. [T] $f\left(x\right)={x}^{2}-2$, ${x}_{0}=1$

55. [T] $f\left(x\right)={\left(x - 1\right)}^{2}-2$, ${x}_{0}=2$

56. [T] $f\left(x\right)={e}^{x}-2$, ${x}_{0}=1$

57. [T] $f\left(x\right)=\text{ln}x - 1$, ${x}_{0}=2$

58. [T] Suppose you start with one liter of vinegar and repeatedly remove $0.1\text{L,}$ replace with water, mix, and repeat.

1. Find a formula for the concentration after $n$ steps.
2. After how many steps does the mixture contain less than $10\text{%}$ vinegar?

59. [T] A lake initially contains $2000$ fish. Suppose that in the absence of predators or other causes of removal, the fish population increases by $6\text{%}$ each month. However, factoring in all causes, $150$ fish are lost each month.

1. Explain why the fish population after $n$ months is modeled by ${P}_{n}=1.06{P}_{n - 1}-150$ with ${P}_{0}=2000$.
2. How many fish will be in the pond after one year?

60. [T] A bank account earns $5\text{%}$ interest compounded monthly. Suppose that $\\text{1000}$ is initially deposited into the account, but that $\\text{10}$ is withdrawn each month.

1. Show that the amount in the account after $n$ months is ${A}_{n}=\left(1+.\frac{05}{12}\right){A}_{n - 1}-10$; ${A}_{0}=1000$.
2. How much money will be in the account after $1$ year?
3. Is the amount increasing or decreasing?
4. Suppose that instead of $\\text{10}$, a fixed amount $d$ dollars is withdrawn each month. Find a value of $d$ such that the amount in the account after each month remains $\\text{1000}$.
5. What happens if $d$ is greater than this amount?

61. [T] A student takes out a college loan of $\\text{10,000}$ at an annual percentage rate of $6\text{%}$, compounded monthly.

1. If the student makes payments of $\\text{100}$ per month, how much does the student owe after $12$ months?
2. After how many months will the loan be paid off?

62. [T] Consider a series combining geometric growth and arithmetic decrease. Let ${a}_{1}=1$. Fix $a>1$ and $0<b<a$. Set ${a}_{n+1}=a.{a}_{n}-b$. Find a formula for ${a}_{n+1}$ in terms of ${a}^{n}$, $a$, and $b$ and a relationship between $a$ and $b$ such that ${a}_{n}$ converges.

63. [T] The binary representation $x=0.{b}_{1}{b}_{2}{b}_{3}..$. of a number $x$ between $0$ and $1$ can be defined as follows. Let ${b}_{1}=0$ if $x<\frac{1}{2}$ and ${b}_{1}=1$ if $\frac{1}{2}\le x<1$. Let ${x}_{1}=2x-{b}_{1}$. Let ${b}_{2}=0$ if ${x}_{1}<\frac{1}{2}$ and ${b}_{2}=1$ if $\frac{1}{2}\le x<1$. Let ${x}_{2}=2{x}_{1}-{b}_{2}$ and in general, ${x}_{n}=2{x}_{n - 1}-{b}_{n}$ and ${b}_{n - 1}=0$ if ${x}_{n}<\frac{1}{2}$ and ${b}_{n - 1}=1$ if $\frac{1}{2}\le {x}_{n}<1$. Find the binary expansion of $\frac{1}{3}$.

64. [T] To find an approximation for $\pi$, set ${a}_{0}=\sqrt{2+1}$, ${a}_{1}=\sqrt{2+{a}_{0}}$, and, in general, ${a}_{n+1}=\sqrt{2+{a}_{n}}$. Finally, set ${p}_{n}={3.2}^{n}\sqrt{2-{a}_{n}}$. Find the first ten terms of ${p}_{n}$ and compare the values to $\pi$.

For the following two exercises, assume that you have access to a computer program or Internet source that can generate a list of zeros and ones of any desired length. Pseudorandom number generators (PRNGs) play an important role in simulating random noise in physical systems by creating sequences of zeros and ones that appear like the result of flipping a coin repeatedly. One of the simplest types of PRNGs recursively defines a random-looking sequence of $N$ integers ${a}_{1},{a}_{2}\text{,… },{a}_{N}$ by fixing two special integers $K$ and $M$ and letting ${a}_{n+1}$ be the remainder after dividing $K.{a}_{n}$ into $M$, then creates a bit sequence of zeros and ones whose $n\text{th}$ term ${b}_{n}$ is equal to one if ${a}_{n}$ is odd and equal to zero if ${a}_{n}$ is even. If the bits ${b}_{n}$ are pseudorandom, then the behavior of their average $\frac{\left({b}_{1}+{b}_{2}+\cdots +{b}_{N}\right)}{N}$ should be similar to behavior of averages of truly randomly generated bits.

65. [T] Starting with $K=16,807$ and $M=2,147,483,647$, using ten different starting values of ${a}_{1}$, compute sequences of bits ${b}_{n}$ up to $n=1000$, and compare their averages to ten such sequences generated by a random bit generator.

66. [T] Find the first $1000$ digits of $\pi$ using either a computer program or Internet resource. Create a bit sequence ${b}_{n}$ by letting ${b}_{n}=1$ if the $n\text{th}$ digit of $\pi$ is odd and ${b}_{n}=0$ if the $n\text{th}$ digit of $\pi$ is even. Compute the average value of ${b}_{n}$ and the average value of ${d}_{n}=|{b}_{n+1}-{b}_{n}|$, $n=1\text{,…},999$. Does the sequence ${b}_{n}$ appear random? Do the differences between successive elements of ${b}_{n}$ appear random?