TCS MOCK TEST
Exam
Logical Reasoning
If f(0)=0;
f(2n)=f(n);
f(2n+1)=f(n)+1;
then f(2018)=_________?
Read Solution (Total 1)
-
- put n=0 in third one...f(1)=f(0)+1...i.e f(1)=1
as f(2n)=f(n)...put n=1....f(2)=f(1)
hence f(2)=1.....likewise if we put n=2...i.ef(4)=f(2)=1
hence f(2018)=1 - 6 years agoHelpfull: Yes(1) No(1)
TCS MOCK TEST Other Question