\documentclass[12pt]{article} \usepackage{comment} \newcommand{\REL}{{\rm REL}} \newcommand{\NOBET}{{\rm NOBET}} \newcommand{\ONEFOUR}{{\rm ONEFOUR}} \newcommand{\into}{{\rightarrow}} \newcommand{\lf}{\left\lfloor} \newcommand{\rf}{\right\rfloor} \newcommand{\lc}{\left\lceil} \newcommand{\rc}{\right\rceil} \newcommand{\Ceil}[1]{\left\lceil {#1}\right\rceil} \newcommand{\ceil}[1]{\left\lceil {#1}\right\rceil} \newcommand{\floor}[1]{\left\lfloor{#1}\right\rfloor} \newcommand{\Z}{{\sf Z}} \newcommand{\N}{{\sf N}} \newcommand{\Q}{{\sf Q}} \newcommand{\R}{{\sf R}} \newcommand{\Rpos}{{\sf R}^+} \newcommand{\st}{\mathrel{:}} \newcommand{\goes}{\rightarrow} \usepackage{amsmath} \begin{document} \centerline{\bf HW11 DUE Mon May 10, 9:00AM-NO DEAD CAT} \bigskip For {\bf Programming Problems} Send your code to Emily by email. Send the actual .java/.py/ect file. You need to use your .umd email address or it will not send. In your pdf, you must have the output your code provides. You can screenshot this or type it in. Hint: Use Python. \bigskip \begin{enumerate} \item (0 points but if you miss the final that means you got this wrong retroactively and you will lose a lot of points). When is the FINAL? By what day do you need to tell Dr. Gasarch that you cannot make the midterm (if you cannot and know ahead of time)? {\bf HINT} The TIME of the Final is Monday May 17, 8:00PM-10:15PM. This is NOT the time on the official School Schedule-of-finals. \item (30 points) Find a closed form for the following recurrence. $a_0=0$ $a_1=0$ $(\forall n\ge 2)[a_n = 3a_{n-1} -2a_{n-2} + 3^n]$ \centerline{\bf GOTO NEXT PAGE} \newpage \item (30 points) (The following is a TRUE story). There are two book companies that both sell books on Amazon, Bordeebook and Profnath books (those are there real names). {\bf FACT ONE} If Profnath books is charging $x$ for a book, Bordeebook will change their price to $1.23x$. {\bf FACT TWO} If Bordeebook is charging $x$ for a book, Profnath will change their price to $0.99x$. The book {\it The making of a fly} was originally listed on both sites at \$70.00. They SIMULTANEOUSLY change their prices. Let $b_n$ be the price Bordeebook is charging after $n$ iterations. Let $p_n$ be the price Profnath is charging after $n$ iterations. Note that $b_0=70$ $p_0=70$. $(\forall n\ge 1)[ b_n = 1.23p_{n-1}]$. $(\forall n\ge 1)[ p_n = 0.99b_{n-1}]$. And NOW for the problem \begin{enumerate} \item Obtain a closed form formula for $b_{2n}$ and $b_{2n+1}$. \item Obtain a closed form formula for $p_{2n}$ and $p_{2n+1}$. \item This problem had parameters $1.23$ and $0.99$ and (if you did the problem correctly) the four quantities in the last two problems both go to infinity (the list price on Amazon eventually went up to \$23,000,000, which is a lot for a book that only got 4.1 stars). Find $1.1