Consider the following recurrence: f(1) = 1 f(2n) = 2f(n) − 1 for n ≥ 1 f(2n +…

PYQ GATE 2022

Consider the following recurrence:

f(1) = 1
f(2n) = 2f(n) − 1 for n ≥ 1
f(2n + 1) = 2f(n) + 1 for n ≥ 1

Then, which of the following statements is/are TRUE?

  1. A.

    f(2n−1)=2n−1f(2^n - 1) = 2^n - 1

  2. B.

    f(2n)=1f(2^n) = 1

  3. C.

    f(5.2n)=2n+1+1f(5.2^n) = 2^{n+1} + 1

  4. D.

    f(2n+1)=2n+1f(2^n + 1) = 2^n + 1

Attempted by 81 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…