TCS Company

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

Read Solution (Total 9)

TCS Other Question

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
When the polynomial 1-2x+3x^2-4x^3+..... -78x^78+79x^79 is divided by x-1, the remainder is
option
a) 39
b) -39
c) x+1
d) 41
e) 40