Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
If $n$ is a positive integer and $f(n)$ is the coefficient of $x^n$ in the expansion of $(1+x)(1-x)^n$, then $f(2023)=$
MathematicsBinomial TheoremTS EAMCETTS EAMCET 2023 (14 May Shift 1)
Options:
  • A $-2021$
  • B $2022$
  • C $2023$
  • D $-2023$
Solution:
2449 Upvotes Verified Answer
The correct answer is: $2022$
$(1+x)(1-x)^{\mathrm{n}}$
$\begin{aligned} & \text { Coefficient of } x^n=1 \times \text { coefficient of } x^n \text { in }(1-x)^n \\ & +1 \times \text { coefficient of } x^{n-1} \text { in }(1-x)^n \\ & =(-1)^n \cdot{ }^n C_n+(-1)^{n-1} \cdot{ }^n C_{n-1}=(-1)^n+(-1)^{n-1} \cdot n \\ & \therefore f(n)=(-1)^n+(-1)^{n-1} \cdot n \\ & f(2023)=(-1)^{2023}+(-1)^{2022} \cdot 2023 \\ & =-1+2023=2022\end{aligned}$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.