TCS Company

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

Read Solution (Total 7)

TCS Other Question

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
Your friend prakhar has a collection of 13 bags containing cricket balls to be distributed among some bowlers. The bags are labeled "bag_1", "bag_2", ..., "bag_13" and the bag labeled "bag_n" contains exactly n cricket balls. The bags are sealed and cannot be opened prior to distribution. What is the maximum number of bowlers that prakhar can distribute the bags to if each bowler gets the same number of balls?

a. 7
b. 13
c. 8
d. 5
e. 6