Search problems

21 problems match “recurrence relations”. Clear

Visitors search a sample. Sign in for free to search every problem. Sign in

  1. Fifth term of Alicia's sequence ●○○○○ 10 ptsAlicia starts a sequence with m=3m=3. Her algorithm is: 1. Write down the number mm as the first term. 2. If mm is even, set n=12mn=\frac{1}{2}m; if mm is odd, set n=m+1n=m+1. 3. Write down the number m+n+1m+n+1 as the next term. 4. Set mm equal to the value of the term just written in Step 3. 5. Repeat Steps 2, 3 and 4 until she has five terms, then stop. What is the fifth term of her sequence?
  2. Fifth term of a recursive sequence ●○○○○ 10 ptsIn the sequence {an}\{a_n\}, a1=2a_1=2 and an+1=2an−1a_{n+1}=2a_n-1. Find a5a_5.
  3. Blasting an asteroid into pieces ●○○○○ 10 ptsBruce the Astronaut must destroy a large asteroid. When he blasts a large asteroid, it splits into two medium asteroids. When he blasts a medium asteroid, it splits into three small asteroids. When he blasts a small asteroid, it vanishes. How many blasts does he need to make the asteroid completely vanish?
  4. First four terms of a recurrence ●○○○○ 10 ptsFind the first four terms of the sequence defined by tn=2tn−1+4t_n=2t_{n-1}+4 with t1=8t_1=8.
  5. Evaluating the Ackermann function ●●○○○ 20 ptsDefine a function A(m,n)A(m, n) by A(m,n)={n+1if m=0,A(m−1,1)if m>0 and n=0,A(m−1,A(m,n−1))if m>0 and n>0.A(m,n) = \begin{cases} n+1 & \text{if } m = 0, \\ A(m-1, 1) & \text{if } m > 0 \text{ and } n = 0, \\ A(m-1, A(m, n-1)) & \text{if } m > 0 \text{ and } n > 0. \end{cases} Compute A(2,1)A(2, 1).
  6. Doubling map sequence term ●●○○○ 20 ptsA sequence {an}\{a_n\} satisfies an+1=2ana_{n+1}=2a_n if 0⩽an<120 \leqslant a_n < \frac{1}{2} and an+1=2an−1a_{n+1}=2a_n-1 if 12⩽an<1\frac{1}{2} \leqslant a_n < 1, for every positive integer nn, and a1=67a_1=\frac{6}{7}. Find a24a_{24}. Round to two decimal places.
  7. Seven-letter good words ●●○○○ 20 ptsDefine a good word as a sequence of letters that consists only of the letters AA, BB, and CC (some of these letters may not appear in the sequence), and in which AA is never immediately followed by BB, BB is never immediately followed by CC, and CC is never immediately followed by AA. How many seven-letter good words are there?
  8. Count unival subtrees in a tree ●●○○○ 20 ptsA unival subtree of a binary tree is a subtree in which all nodes have the same value. A single leaf counts as a unival subtree. Consider the following binary tree. The root has value 00. The root's left child has value 11 and is a leaf. The root's right child has value 00; its left child has value 11 and its right child has value 00 (a leaf). The node with value 11 (the left child of the right child) has two children, both with value 11 (leaves). How many unival subtrees does the tree have?
  9. First term of a recurrence with a constant subtraction ●●○○○ 20 ptsA sequence a1,a2,a3,…a_1, a_2, a_3, \ldots satisfies an=3an−1−xa_n = 3a_{n-1} - x for every n≥2n \ge 2, where xx is an integer that is the same for all terms. Given that a2=7a_2 = 7 and a4=43a_4 = 43, find a1a_1.
  10. Integer trapped between two sequences ●●●○○ 50 ptsLet {an}\{a_n\} and {bn}\{b_n\} be sequences with a1=0a_1=0 and b1=2013b_1=2013, such that for every positive integer nn the triples (an,an+1,bn)(a_n, a_{n+1}, b_n) and (an+1,bn+1,bn)(a_{n+1}, b_{n+1}, b_n) are arithmetic sequences. Find the unique positive integer cc such that an<c<bna_n < c < b_n for all positive integers nn.

Next →