GATEverse
← GATE CSE 2022

Q41

MSQ2 marks

Consider the following recurrence:

f(1)=1;f(2n)=2f(n)–1,  for  n≥1;f(2n+1)=2f(n)+1,  for  n≥1.\begin{array}{} f(1) & = & 1; \\ f(2n) & = & 2f(n) – 1, & \; \text{for}\; n \geq 1; \\ f(2n+1) & = & 2f(n) + 1, & \; \text{for}\; n \geq 1. \end{array}

Then, which of the following statements is/are TRUE?\text{TRUE}?

Sign in to save attempts.

Loading…