TCS Company

Consider the function S(n) defined on positive integers n by
S(n) = n - rev (n)
where rev (n) is the number with the digits of n reversed
For example,
S(71) = 71 - 17 = 54,
S(36) = 36 - 63 = -27.
The sum S(10) + S(11) + ... + S(95) equals
279
468
0
126
351

Read Solution (Total 3)

TCS Other Question

In the 8th grade of kendriya vidyalaya, a teacher asked for the number of solutions to the following equation:
| x + 3| + | x - 9| = 0
What would your answer be?
a) 2 solutions.
b) 9 solutions.
c) no solutions
d) 1 solution.
e) 3 solutions.
frank proposes the following problem in the class.
If a = 1 + 3 + 5 + 7 + .. + 31
and b = 2 + 4 + 6 + 8 + ... + 32
then the value of (a - b)2 is
1024
256
225
961