Question:

If n is a positive integer and f(n) is the coeffcient of xn in the expansion of (1 + x)(1-x)n, then f(2023) =

Updated On: Apr 29, 2025
  • -2021

  • 2022

  • 2023

  • -2023

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

We are given that $f(n)$ is the coefficient of $x^n$ in the expansion of $(1+x)(1-x)^n$. 

We want to find $f(2023)$.

Let $(1+x)(1-x)^n = \sum_{k=0}^{n+1} a_k x^k$. Then $f(n) = a_n$.

Expanding $(1+x)(1-x)^n$, we have:

$(1+x)(1-x)^n = (1-x)^n + x(1-x)^n = \sum_{k=0}^n \binom{n}{k} (-x)^k + x \sum_{k=0}^n \binom{n}{k} (-x)^k$

$= \sum_{k=0}^n \binom{n}{k} (-1)^k x^k + \sum_{k=0}^n \binom{n}{k} (-1)^k x^{k+1}$

The coefficient of $x^n$ in the expansion is:

$\binom{n}{n} (-1)^n + \binom{n}{n-1} (-1)^{n-1}$

Thus, $f(n)$ can be expressed as:

$f(n) = (-1)^n + n (-1)^{n-1} = (-1)^n + (-1)^{n-1} n$

$f(n) = (-1)^n - n (-1)^n = (-1)^n (1 - n)$

Substituting $n = 2023$, we get:

$f(2023) = (-1)^{2023} (1 - 2023) = -1 (-2022) = 2022$.

Final Answer:
The final answer is ${2022}$.

Was this answer helpful?
2
14

Concepts Used:

Binomial Theorem

The binomial theorem formula is used in the expansion of any power of a binomial in the form of a series. The binomial theorem formula is 

Properties of Binomial Theorem

  • The number of coefficients in the binomial expansion of (x + y)n is equal to (n + 1).
  • There are (n+1) terms in the expansion of (x+y)n.
  • The first and the last terms are xn and yn respectively.
  • From the beginning of the expansion, the powers of x, decrease from n up to 0, and the powers of a, increase from 0 up to n.
  • The binomial coefficients in the expansion are arranged in an array, which is called Pascal's triangle. This pattern developed is summed up by the binomial theorem formula.