TCS Company

he function f is defined on the set of positive integers in the following way:
f(1) = 2
f(2*n) = f(n)
f(2*n+1) = f(n) + f(n+1)
What is f(17)?
option
a) 10
b) 2
c) 8
d) 17
e) 6

Read Solution (Total 8)

TCS Other Question

The equation |x + 4| + |x - 7| = 0 has no solutions
option
a)7 solutions.
b) 4 solutions.
c) 2 solutions.
d) 1 solution
Consider the function M(n) defined on positive integers by M(n)=minimum of the digits of n;
For example, M(71) = min (7, 1) = 1.
The sum M(1) + M(2) + ... + M(90) equals
option
a) 284
b) 313
c) 302
d) 285
e) 286