Computer Sciences > Gate 2022 > 1
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?
A
f(2n–1)=2n–1
B
f(2n)=1
C
f(5⋅2n)=2n+1+1
D
f(2n+1)=2n+1

Correct : a,b,c

Similar Questions

Consider the following languages: L1 = {ww | w ∈ {a, b}* } L2 = {anbncn | m, n≥ 0} L3 = {ambncn | m, n≥ 0} Which of the following statements is/are FALSE?
#322 MSQ
Which of the following statements is/are TRUE with respect to deadlocks?
#323 MCQ
Let r be a root of the equation x2 + 2x + 6 = 0. Then the value of the expression (r+2) (r+3)(r+4)(r+5) is
#325 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......