What this quiz covers
This quiz focuses on Formulating Recurrences, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.
A recursive algorithm for computing factorials uses the following approach: to compute n!, it makes one recursive call to compute (n−1)!, then performs n multiplication operations to get the final result. Let M(n) be the total number of multiplication operations needed to compute n! using this algorithm. Which recurrence relation describes M(n)?
Discrete Math Quiz
Practice Formulating Recurrences 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 Formulating Recurrences, 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.
A recursive algorithm for computing factorials uses the following approach: to compute n!, it makes one recursive call to compute (n−1)!, then performs n multiplication operations to get the final result. Let M(n) be the total number of multiplication operations needed to compute n! using this algorithm. Which recurrence relation describes M(n)?
A population of bacteria doubles every hour, but at the end of each hour, exactly 100 bacteria are removed for testing. If Pn represents the population after n hours and the initial population is P0, which recurrence relation correctly models this situation?
A fibonacci-like sequence has the property that each term is the sum of the two preceding terms, but every 4th term is multiplied by a factor r>1 to account for periodic external input. If Fn denotes the n-th term of this modified sequence, which recurrence relation correctly describes it for n≥3?
A viral video's view count follows a complex pattern: each day, it gains 150% of the previous day's views plus 80% of the views from two days ago, representing both direct sharing and delayed discovery. However, platform algorithms throttle viral content, so if the total calculated views would exceed 1 million, the actual views become the square root of the calculated amount (in thousands) times 1000. If Vn represents views on day n (in thousands), which recurrence relation is correct for n≥2?
A water tank system has inflow and outflow patterns. Each minute, the water level changes according to: 85% of the current level remains, plus 40% of the level from two minutes ago flows back from a secondary tank, plus a constant inflow of 20 gallons. However, if the calculated level would exceed the tank's capacity of 500 gallons, the excess automatically drains. If Wn represents the water level after n minutes, which recurrence relation is correct for n≥2?
A bank account earns 5% interest compounded monthly, but at the beginning of each month (before interest is calculated), a withdrawal of $200 is made. Additionally, every 6 months, a bonus deposit of $500 is made after the interest is calculated. If $Bn representsthebalanceafter n months,whichrecurrencerelationcorrectlymodelsthisscenariofor n≥1 $?
A manufacturing process produces items in batches. The number of items in batch n equals 90% of the items in batch n−1, plus 60% of the items in batch n−2 (representing rework from two batches ago), minus a quality control removal of 50 items. However, production cannot go below 100 items per batch due to fixed overhead costs. If In represents items in batch n, which recurrence relation is appropriate for n≥2?
A learning algorithm adjusts weights according to this rule: the new weight is 120% of the previous weight, minus 30% of the weight from two iterations ago, plus an adjustment factor. The adjustment factor equals 10% of the current weight if the algorithm is converging (when consecutive weights are getting closer), otherwise it equals 5% of the previous weight. If Wn denotes the weight after n iterations, which recurrence relation correctly captures this for n≥2?
A tower of blocks is built according to the following rules: to build a tower of height n, you can either add a single block to a tower of height n−1, or add two blocks simultaneously to a tower of height n−2, but only if the tower of height n−2 has an even number of ways to be constructed. If Tn represents the number of ways to build a tower of height n, which recurrence relation is correct?
A recursive sequence models population growth where each generation is 80% of the previous generation plus 40% of the generation before that, representing both survival and delayed reproduction. However, environmental constraints limit the population such that if the calculated value exceeds the carrying capacity K, the actual population becomes K−(excess)/2. If Pn represents the population in generation n, which recurrence relation is correct for n≥2?
A digital signal processing system applies the following transformation: each sample Sn is computed as 60% of the previous sample plus 25% of the sample from two steps back, plus a noise reduction term equal to 15% of the absolute difference between those two previous samples. If Sn represents the n-th processed sample, which recurrence relation correctly models this for n≥2?
A supply chain model tracks inventory levels where each period's inventory equals 95% of the previous period's inventory (accounting for spoilage), plus 110% of the inventory from two periods ago (representing delayed restocking), minus a base consumption of 100 units. Additionally, if the resulting inventory would be negative, emergency procurement brings it up to exactly 50 units. If In represents inventory in period n, which recurrence relation correctly models this for n≥2?
A social media post's engagement follows this pattern: each day, the engagement is 70% of the previous day's engagement plus 30% of the day before that. Additionally, if the engagement falls below a threshold T, the platform's algorithm boosts it by adding 50% of the threshold value. If En represents engagement on day n, which recurrence relation correctly models this for n≥2?
A company's monthly profit follows this pattern: each month's profit is 120% of the previous month's profit, but fixed costs of $5000 are subtracted each month. However, every quarter (every 3rd month), they receive a bonus payment equal to 10% of that month's profit before the fixed costs are subtracted. If $Pn representstheprofitinmonth n ,whichrecurrencerelationmodelsthissituationfor n≥2 $?
A sequence is defined where each term equals three times the previous term minus twice the term before that, with initial conditions a1=2 and a2=5. Additionally, every third term is increased by 1. If an denotes the n-th term for n≥3, which recurrence relation correctly captures this pattern?
In a computer network, the number of active connections in hour n depends on the previous two hours as follows: half of the connections from hour n−1 remain active, plus one-third of the connections from hour n−2 are reactivated, plus 50 new connections are added. However, if the total would exceed 1000 connections, the system caps it at 1000. Which recurrence relation correctly models Cn, the number of connections in hour n?
A sequence of binary strings is defined such that each string of length n must not contain three consecutive 1's. Let f(n) be the number of valid binary strings of length n. Which recurrence relation correctly describes f(n)?
A manufacturing process produces items in batches. The number of defective items in batch n depends on two factors: it's proportional to the square root of the number of defective items in the previous batch, plus it increases by 5 for every 10 defective items that were in the batch before that. If Dn represents defective items in batch n, which recurrence relation captures this relationship?
In a tournament bracket, teams are eliminated in pairs, with the winner advancing to the next round. However, in each round, one additional team receives a "bye" and automatically advances without playing. If Tn represents the number of teams remaining after n rounds, and initially there are T0 teams, which recurrence relation models this situation?
A computer virus spreads through a network such that on day n, the number of newly infected computers is equal to twice the number of computers that were infected on day n−1, plus three times the number of computers that were infected on day n−2. If an represents the total number of infected computers by the end of day n, which recurrence relation correctly models this situation?