What this quiz covers
This quiz focuses on Counting With Recursion, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.
The Tribonacci sequence satisfies t1=1, t2=1, t3=2, and tn=tn−1+tn−2+tn−3 for n≥4. A modified version counts only those sequences where tn is even. Let En=1 if tn is even, 0 otherwise. What is ∑k=16Ek?
Discrete Math Quiz
Practice Counting With Recursion in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
This quiz focuses on Counting With Recursion, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
The Tribonacci sequence satisfies t1=1, t2=1, t3=2, and tn=tn−1+tn−2+tn−3 for n≥4. A modified version counts only those sequences where tn is even. Let En=1 if tn is even, 0 otherwise. What is ∑k=16Ek?
A sequence sn counts the number of subsets of {1,2,…,n} that contain no two consecutive integers. Given s0=1 and s1=2, and the recursion sn=sn−1+sn−2 for n≥2, what is s4?
The Catalan numbers Cn satisfy C0=1 and Cn=∑i=0n−1CiCn−1−i for n≥1. These count the number of ways to parenthesize a product of n+1 factors. What is C3?
Let P(n,k) denote the number of ways to partition a set of n elements into exactly k non-empty subsets (Stirling numbers of the second kind). The recursion is P(n,k)=kP(n−1,k)+P(n−1,k−1). Given P(3,2)=3, what is P(4,2)?
Let cn count the number of ways to arrange n distinct books on a shelf such that no book is in its original position (derangements). Given the recursion cn=(n−1)(cn−1+cn−2) and c1=0, c2=1, what is c4?
Let w(n) count the number of ways to write n as an ordered sum of positive integers where each term is either 1 or a prime number. For example, w(4)=4 since 4=1+1+1+1=1+1+2=1+2+1=2+1+1. What is w(7)?
Consider sequences of length n using the symbols A, B, C where no two consecutive symbols are the same, and the sequence cannot start with C. Let g(n) denote the number of such sequences. If g(1)=2 and g(2)=4, what is g(5)?
Let an be the number of ways to tile a 2×n rectangle using 1×2 dominoes (which can be placed horizontally or vertically). Given that a1=1 and a2=2, what is a6?
A sequence bn counts the number of binary strings of length n that do not contain two consecutive 1's. Given that b0=1, b1=2, and b2=3, what is b5?
Let f(n) be the number of ways to climb n stairs if you can take 1, 2, or 3 steps at a time. If f(1)=1, f(2)=2, and f(3)=4, what is f(6)?
Let an represent the number of ways to tile a 2×n rectangle using 1×2 dominoes. If a1=1 and a2=2, what is the value of a6?
Let f(n) be the number of binary strings of length n that contain no three consecutive 1's. If f(1)=2, f(2)=4, and f(3)=7, what is f(6)?