Given recurrence relations:
f(1)=1
f(2n)=2f(n)−1 for n≥1
f(2n+1)=2f(n)+1 for n≥1
Let's compute some values:
f(1)=1
f(2)=2f(1)−1=2(1)−1=1 (for n=1)
f(3)=2f(1)+1=2(1)+1=3 (for n=1)
f(4)=2f(2)−1=2(1)−1=1 (for n=2)
f(5)=2f(2)+1=2(1)+1=3 (for n=2)
f(6)=2f(3)−1=2(3)−1=5 (for n=3)
f(7)=2f(3)+1=2(3)+1=7 (for n=3)
f(8)=2f(4)−1=2(1)−1=1 (for n=4)
Observe a pattern:
f(2k)=1 for k≥0. (e.g., f(1)=1,f(2)=1,f(4)=1,f(8)=1)
f(2k−1)=2k−1. (e.g., f(1)=1,f(3)=3,f(7)=7)
Let's test the statements:
(A) "f(2n−1)=2n−1"
Base case: n=1, f(21−1)=f(1)=1. 21−1=1. True.
Assume f(2k−1)=2k−1 for some k≥1.
We need to show f(2k+1−1)=2k+1−1.
2k+1−1 is an odd number. Let m=2k−1. Then 2k+1−1=2(2k−1)+1. So f(2m+1)=2f(m)+1.
f(2k+1−1)=f(2(2k−1)+1)=2f(2k−1)+1.
By induction hypothesis, f(2k−1)=2k−1.
So, f(2k+1−1)=2(2k−1)+1=2k+1−2+1=2k+1−1.
This statement is TRUE.
(B) "f(2n)=1"
Base case: n=1, f(21)=f(2)=1. True.
Assume f(2k)=1 for some k≥1.
We need to show f(2k+1)=1.
f(2k+1)=f(2⋅2k)=2f(2k)−1.
By induction hypothesis, f(2k)=1.
So, f(2k+1)=2(1)−1=1.
This statement is TRUE.
(C) "f(5⋅2n)=2n+1+1"
Let's test with small n:
For n=0: f(5⋅20)=f(5)=3.
According to the formula: 20+1+1=21+1=3. True for n=0.
For n=1: f(5⋅21)=f(10).
f(10)=2f(5)−1=2(3)−1=5.
According to the formula: 21+1+1=22+1=5. True for n=1.
For n=2: f(5⋅22)=f(20).
f(20)=2f(10)−1=2(5)−1=9.
According to the formula: 22+1+1=23+1=9. True for n=2.
This statement appears to be TRUE. (This can be proven by induction as well.)
Let x=5⋅2n. f(x)=f(2⋅(5⋅2n−1))=2f(5⋅2n−1)−1.
This forms a sequence an=2an−1−1.
If a0=f(5)=3.
an=C⋅2n+D. 3=C+D.
D=2D−1⇒D=1.
C+1=3⇒C=2.
So f(5⋅2n)=2⋅2n+1=2n+1+1.
This statement is TRUE.
(D) "f(2n+1)=2n+1"
Let's test with small n:
For n=1: f(21+1)=f(3)=3. Formula: 21+1=3. True.
For n=2: f(22+1)=f(5)=3. Formula: 22+1=5. So 3=5.
This statement is FALSE.
The TRUE statements are (A), (B), and (C).