CTS
Company
Category
Find the values for the following problem:
f(X)= 2X-1 + f(X-1) if X is not equal to zero and if f(X=0)=0
Value of f(5)
a)15 b)24 c)22 d)None
Read Solution (Total 5)
-
- Ans. d
f[5]=9+f[4]
f[4]=7+f[3]
f[3]=5+f[2]
f[2]=3+f[1]
f[1]=1+f[0]
f[0]=0
Sum of entire values yields 25. - 10 years agoHelpfull: Yes(17) No(0)
- ans e)none
given
f(x=0)=0
f(x)=2x-1+f(x-1)
f(5) we have to calculate
f(1)=(2*1)-1+f(1-1)
=2-1=1
f(2)=(2*2)-1+f(2-1)
=3+1=4
it is like
1^2=1
2^2=4
similarly
f(3)=9
f(4)=16)
f(5)=25. - 10 years agoHelpfull: Yes(3) No(0)
- F(0)=-1+f(-1)
f(1)=2-1+f(0)=1+0=1
f(2)=4-1+F(1)=3+1=4
We can observe that ans is the square of the value of x
hence,f(5)=25 - 10 years agoHelpfull: Yes(0) No(0)
- f(1)=2-1+0(because it is given that f(0)=0
so f(1)=1,
f(2)=4-1+1=4,
f(3)=6-1+4=9,
f(4)=8-1+9=16,
f(5)=10-1+16=25 so option d is correct - 10 years agoHelpfull: Yes(0) No(0)
- answer is 25...
so the option is d)none - 10 years agoHelpfull: Yes(0) No(0)
CTS Other Question