Formulate recurrence relations from problems - Discrete Math
- A manufacturing process produces items in batches. The number of defective items in batch 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 represents defective items in batch , which recurrence relation captures this relationship? Answer: for The defective items consist of: (1) an amount proportional to (with proportionality constant 1), and (2) an increase of 5 for every 10 defective items in batch . The second part means we add . Therefore . Choice A uses instead of . Choice C writes the expression as which equals , missing the factor of 5. Choice D uses instead of .
- A sequence is defined where each term equals three times the previous term minus twice the term before that, with initial conditions and . Additionally, every third term is increased by 1. If denotes the -th term for , which recurrence relation correctly captures this pattern? Answer: if , otherwise Every third term means terms at positions 3, 6, 9, etc., which are positions where . Choice B incorrectly uses . Choice C is incomplete notation. Choice D uses bracket notation incorrectly for the modular condition.
- A digital signal processing system applies the following transformation: each sample 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 represents the -th processed sample, which recurrence relation correctly models this for ? Answer: for When you encounter recurrence relation problems, you need to carefully translate each verbal description into mathematical notation, paying close attention to signs and whether absolute values are required. Let's break down the transformation step by step. Each sample consists of three components: 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 (). The key insight is that all three terms are added together, and the noise reduction term uses the absolute difference to ensure it's always positive (since it represents a magnitude of difference). This gives us , which matches answer choice D. Answer choice A incorrectly applies absolute value to the individual samples and , but the problem states we use percentages of the actual samples, not their absolute values. Answer choice B has the wrong sign on the noise reduction term—it subtracts instead of adds, which contradicts the "plus" in the problem statement. Answer choice C omits the absolute value bars around the difference term, but since this represents a noise reduction magnitude, it must always be positive regardless of which previous sample is larger. Remember: when translating word problems into recurrence relations, track each component separately and watch for keywords like "plus," "minus," and "absolute difference" to determine the correct signs and operations.
- 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 represents the profit in month , which recurrence relation models this situation for ? Answer: if , otherwise The profit grows by 120%, then fixed costs are subtracted. Every 3rd month, there's a 10% bonus on the profit before fixed costs (i.e., on ). This gives . Choice A doesn't simplify. Choice B applies bonus to previous month's final profit. Choice D incorrectly references on both sides.
- 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 represents the water level after minutes, which recurrence relation is correct for ? Answer: for When modeling systems with constraints like maximum capacity, you need to capture both the natural dynamics and the limiting mechanism in your recurrence relation. Let's break down what happens each minute: 85% of the current level remains (), 40% flows back from two minutes ago (), and 20 gallons flow in constantly. Without any capacity limit, this would give us . However, the tank has a 500-gallon capacity with automatic drainage of excess water. This means the actual water level is the minimum of either the calculated amount or the maximum capacity. This constraint is perfectly captured by , which is answer choice D. Choice A awkwardly separates the constraint into conditional logic rather than expressing it mathematically. While conceptually similar, it's not the standard mathematical formulation. Choice B attempts to subtract excess water, but this creates an unnecessarily complex expression. The term essentially recreates what already accomplishes more elegantly. Choice C incorrectly applies the capacity constraint to only the return flow component () rather than the total water level. This misrepresents how the overflow mechanism works. Study tip: When you see capacity constraints or limiting conditions in recurrence relations, look for the function to cap the maximum value. This is the standard mathematical way to express "up to a limit" relationships in discrete mathematics.
- In a computer network, the number of active connections in hour depends on the previous two hours as follows: half of the connections from hour remain active, plus one-third of the connections from hour 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 , the number of connections in hour ? Answer: for The formula calculates the total connections, then caps at 1000 using min function. Choice B uses circular logic ( appears on both sides of condition). Choice C creates circular reference with in the min function. Choice D incorrectly caps individual components rather than the total.
- A library's book acquisition policy works as follows: each month, they purchase a number of new books equal to 10% of their current collection, but they also remove books such that the total number removed equals the number of books that were added in the previous month. Let represent the number of books after months. Which recurrence relation models this situation? Answer: for Each month: (1) add new books, and (2) remove a number equal to what was added last month, which was . So . Choice A is the expanded form of the correct answer. Choice C removes the same amount that was added in the current month, not the previous month. Choice D removes (the net change last month) rather than (the books added last month).
- A computer virus spreads through a network such that on day , the number of newly infected computers is equal to twice the number of computers that were infected on day , plus three times the number of computers that were infected on day . If represents the total number of infected computers by the end of day , which recurrence relation correctly models this situation? Answer: for The key insight is that represents the total number of infected computers, not just newly infected ones. The newly infected computers on day is , where represents computers infected on day and represents computers infected on day . Therefore, . Choice A incorrectly treats as newly infected computers. Choice B simplifies incorrectly to . Choice D has an incorrect subtraction term.
- A sequence of binary strings is defined such that each string of length must not contain three consecutive 1's. Let be the number of valid binary strings of length . Which recurrence relation correctly describes ? Answer: for Consider valid strings of length . Case 1: strings ending in 0 - there are such strings. Case 2: strings ending in 10 - there are such strings. Case 3: strings ending in 110 - there are such strings. We cannot have strings ending in 111 as they would be invalid. These cases are mutually exclusive and exhaustive, so . Choice B uses incorrect coefficients. Choice C omits the term and adds an irrelevant term. Choice D has the wrong structure entirely.
- 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 , the platform's algorithm boosts it by adding 50% of the threshold value. If represents engagement on day , which recurrence relation correctly models this for ? Answer: if , otherwise When you encounter piecewise recurrence relations, focus on carefully translating each condition in the problem statement into mathematical terms. This question combines a basic linear recurrence with a conditional boost mechanism. The engagement formula has two components: the base calculation (70% of yesterday plus 30% of the day before) and the threshold boost. Let's trace through the logic: first, you calculate . Then, if this result falls below threshold , the algorithm adds 50% of as a boost. Option D correctly captures this two-step process. It calculates the base engagement, checks if it's below , and if so, adds to boost it. Otherwise, it uses just the base calculation. Option A incorrectly replaces the entire engagement with when below threshold, ignoring the original calculation completely. Option B has the wrong trigger condition—it checks if (yesterday's engagement) rather than checking if today's calculated value is below . Option C uses , which would set engagement to whenever the base calculation is below this value, again replacing rather than boosting the original calculation. The key insight is that the boost adds to the calculated engagement rather than replacing it, and the threshold check applies to the current day's calculated value, not the previous day's actual value. Study tip: In piecewise recurrence problems, identify what gets calculated first, what condition triggers the modification, and whether the modification adds to or replaces the base calculation.
- 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 represents the balance after months, which recurrence relation correctly models this scenario for ? Answer: if , otherwise Withdrawal happens first ($200 removed), then interest (multiply by 1.05), then bonus if applicable. Choice B calculates interest first, then subtracts. Choice C uses equivalent but less standard notation. Choice D incorrectly calculates withdrawal as $210 (incorrectly applying interest to withdrawal).
- 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 to account for periodic external input. If denotes the -th term of this modified sequence, which recurrence relation correctly describes it for ? Answer: if , otherwise When analyzing modified recurrence relations, you need to carefully track how the modification affects the basic recurrence formula. This question tests your understanding of how periodic changes alter standard Fibonacci-like sequences. The key insight is understanding what "every 4th term is multiplied by a factor " means operationally. The sequence follows the normal Fibonacci rule (each term equals the sum of the two preceding terms), but when we reach positions divisible by 4, we apply an additional multiplication by to that sum. Answer C correctly captures this: when , and otherwise. This means we first compute the normal Fibonacci sum, then multiply the entire result by at every 4th position. Answer A is algebraically incorrect because it rearranges to , which would force when . Answer B uses assignment notation () rather than defining a recurrence relation, and doesn't properly specify the relationship between terms. Answer D incorrectly applies the factor only to rather than to the entire sum, which would create a fundamentally different sequence than described. Remember: when modifications are described as happening "to" a term after it's computed, look for the factor being applied to the entire expression that generates that term, not just to individual components within the recurrence.
- A manufacturing process produces items in batches. The number of items in batch equals 90% of the items in batch , plus 60% of the items in batch (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 represents items in batch , which recurrence relation is appropriate for ? Answer: for When dealing with recurrence relations that involve constraints or minimum/maximum conditions, you need to carefully translate each business rule into mathematical language. This problem combines a standard linear recurrence with a floor constraint. The correct answer is C: . This captures the manufacturing process perfectly: first calculate the natural production level (90% of previous batch plus 60% rework minus 50 removed items), then apply the minimum constraint of 100 items using the max function. The operation elegantly handles both cases—when natural production exceeds 100, it uses that value; when it falls below 100, it enforces the minimum. Option A incorrectly uses within the subtraction term, creating a convoluted expression that doesn't properly model the constraint. The nested function makes the formula subtract a variable amount rather than applying a floor constraint. Option B uses conditional logic ("if...otherwise") which, while mathematically equivalent to option C, isn't written as a single recurrence relation formula. In discrete math, we prefer closed-form expressions using standard functions like and . Option D misunderstands the problem by applying minimums to individual terms () rather than to the final result. This incorrectly suggests each component has its own constraint, which isn't stated in the problem. Study tip: When translating word problems into recurrence relations, identify constraints separately from the basic recurrence, then use / functions to enforce those constraints on the entire expression.
- A company's monthly revenue follows a pattern where the revenue in month is the average of the revenues in the previous two months, plus a seasonal adjustment equal to half the revenue from three months ago. If represents revenue in month , which recurrence relation describes this pattern? Answer: for The revenue consists of two parts: (1) the average of the previous two months' revenues, which is , and (2) a seasonal adjustment equal to half the revenue from three months ago, which is . Therefore, . Choice B incorrectly averages all three terms together. Choice C uses the wrong denominator for the first part. Choice D omits the averaging operation for the first two terms.
- A recursive algorithm for computing factorials uses the following approach: to compute , it makes one recursive call to compute , then performs multiplication operations to get the final result. Let be the total number of multiplication operations needed to compute using this algorithm. Which recurrence relation describes ? Answer: for When analyzing recursive algorithms, you need to carefully track what operations happen at each level of recursion. The key is understanding that the recurrence relation must capture both the work done in the recursive call and the additional work done at the current level. Let's trace through this factorial algorithm. To compute , the algorithm first makes a recursive call to compute , which requires multiplication operations. Then, according to the problem statement, it performs additional multiplication operations to get the final result. Therefore, the total number of multiplications is . Choice A suggests , which incorrectly assumes only additional multiplications are needed at each step. This misinterprets the problem statement. Choice B gives , indicating only one additional multiplication per recursive call. This would be correct if you were multiplying the result of by once, but contradicts the stated operations. Choice C proposes , which would mean the number of operations grows exponentially. This misunderstands the relationship between recursive levels—you're not repeating the previous work times. The correct answer is D: . Study tip: When setting up recurrence relations, always identify two components: the cost of the recursive call(s) and the additional work done at the current level. Add these together carefully, paying close attention to the exact wording of how much work each step requires.
- 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 represents inventory in period , which recurrence relation correctly models this for ? Answer: if result , otherwise Emergency procurement sets inventory to exactly 50 when the calculated value would be negative, not when it's below 50. Choice A incorrectly ensures inventory is at least 50 always. Choice B correctly implements the negative threshold condition. Choice C always adds 50. Choice D attempts to adjust consumption, which is incorrect.
- 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 represents views on day (in thousands), which recurrence relation is correct for ? Answer: Let . Then if , otherwise When calculated views exceed 1000 (thousand), the actual views become where is in thousands. Choice B correctly implements this transformation. Choice A uses min incorrectly. Choice C factors incorrectly. Choice D omits the division by 1000 inside the square root.
- 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 denotes the weight after iterations, which recurrence relation correctly captures this for ? Answer: if , else When converging, adjustment is 10% of current weight (the calculated base value). Choice A creates circular reference using . Choice B correctly uses 10% of the calculated base weight . Choice C combines terms incorrectly. Choice D uses 10% of previous weight instead of current calculated weight.
- 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 represents the number of teams remaining after rounds, and initially there are teams, which recurrence relation models this situation? Answer: for When you encounter tournament bracket problems, focus on carefully tracking what happens to teams in each round. You need to identify how many teams are eliminated versus how many advance. Let's think through one round systematically. If you start with teams, one team gets a bye and automatically advances. The remaining teams must pair up and play matches. Since teams are eliminated in pairs, you need matches, which eliminates exactly teams (one loser per match). The winners of these matches, plus the team with the bye, advance to the next round. So: , which is answer choice D. Choice A represents the number of teams eliminated rather than remaining - it's calculating minus the eliminated teams, but this just gives you the same result through subtraction instead of direct counting. Choice B assumes half the original teams advance plus one bye, but this ignores that the bye team comes from the original pool, not in addition to it. Choice C treats the bye as splitting the total in half, as if you're dividing all teams plus one extra, which doesn't reflect the actual tournament mechanics. When solving recurrence relations for elimination tournaments, always account for byes by first removing them from the competing pool, then calculating matches from the remaining teams. This prevents double-counting the bye recipients.
- A population of bacteria doubles every hour, but at the end of each hour, exactly 100 bacteria are removed for testing. If represents the population after hours and the initial population is , which recurrence relation correctly models this situation? Answer: for The bacteria first double (multiply by 2), then 100 are removed. So . Choice B removes bacteria first, then doubles. Choice C is equivalent to A but unnecessarily complex. Choice D removes 100 times the previous population, not just 100 bacteria.