Chapter 10: Problem 8
Determine the number of \(n\)-digit quaternary \((0,1,2,3)\) sequences in which there is never a 3 anywhere to the right of a 0 .
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 10: Problem 8
Determine the number of \(n\)-digit quaternary \((0,1,2,3)\) sequences in which there is never a 3 anywhere to the right of a 0 .
All the tools & learning materials you need for study success - in one app.
Get started for free
In Exercise 14 of Section \(4.2\) we learned that \(F_{0}+F_{1}+F_{2}+\cdots+F_{n}=\sum_{i=0}^{n} F_{l}=F_{n+2}-1\). This is one of many such properties of the Fibonacci numbers that were discovered by the French mathematician François Lucas (1842-1891). Although we established the result by mathematical induction, we see that it is easy to develop this formula by adding the system of \(n+1\) equations $$ \begin{gathered} F_{0}=F_{2}-F_{1} \\ F_{1}=F_{3}-F_{2} \\ \cdots \\ F_{n-1}=F_{n+1}-F_{n} \\ F_{n}=F_{n+2}-F_{n+1} . \end{gathered} $$ Develop formulas for each of the following sums, and then check the general result by mathematical induction. a) \(F_{1}+F_{3}+F_{5}+\cdots+F_{2 n-1}\), where \(n \in \mathbf{Z}^{+}\) b) \(F_{0}+F_{2}+F_{4}+\cdots+F_{2 n}\), where \(n \in \mathbf{Z}^{+}\)
a) For \(\alpha=(1+\sqrt{5}) / 2\), verify that \(\alpha^{2}+1=2+\alpha\) and \((2+\alpha)^{2}=5 \alpha^{2}\). b) Show that for \(\beta=(1-\sqrt{5}) / 2, \beta^{2}+1=2+\beta\) and \((2+\beta)^{2}=5 \beta^{2}\). c) If \(n, m \in \mathbf{N}\) prove that \(\sum_{k-0}^{2 n}\left(\begin{array}{c}2 n \\ k\end{array}\right) F_{2 k+m}=\) \(5^{n} F_{2 n+m}\).
On the first day of a new year, Joseph deposits \(\$ 1000\) in an account that pays \(6 \%\) interest compounded monthly. At the beginning of each month he adds \(\$ 200\) to his account. If be continues to do this for the next four years (so that he makes 47 additional deposits of \(\$ 200\) ), how much will his account be worth exactly four years after he opened it?
Solve the following recurrence relations. a) \(a_{n+2}^{2}-5 a_{n+1}^{2}+6 a_{n}^{2}=7 n, \quad n \geq 0, \quad a_{0}=a_{1}=1\) b) \(a_{n}+n a_{n-1}=n !, n \geq 1, a_{0}=1\) c) \(a_{n}^{2}-2 a_{n-1}=0, \quad n \geq 1, a_{0}=2\) (Let \(b_{n}=\log _{2} a_{n}, n \geq 0\).)
Let \(x_{1}, x_{2}, x_{3}, \ldots, x_{n}\) be \(n\) real numbers, with \(x_{1} \leq x_{2} \leq x_{3} \leq \cdots \leq x_{n}\). The median for this set of \(n\) numbers is defined as $$ \begin{aligned} &x_{(n+1) / 2}, \text { for } n \text { odd } \\ &(1 / 2)\left[x_{n / 2}+x_{(n / 2)+1}\right], \text { for } n \text { even. } \end{aligned} $$ a) Suppose that \(A[1], A[2], A[3], \ldots, A[n]\) is an array of \(n\) real numbers, not necessarily in ascending or descending order. Write a computer program (or develop an algorithm) to determine the median for the set of real numbers listed in this array. b) Discuss the worst-case time complexity for the program you wrote in part (a).
What do you think about this solution?
We value your feedback to improve our textbook solutions.