TCS
Company
The citizens of planet nigiet are 8 fingered and have thus
developed their decimal system in base 8. A certain street in nigiet
contains 1000 (in base 8) buildings numbered 1 to 1000. How many 3s are
used in numbering these buildings?
Read Solution (Total 1)
-
- in unit's place, the 3's are:
3, 13, 23 ... 73
103, 113, 123 ... 173
...
703, 713, .... 773
=> total number of 3's in unit's place is 8*8 = 64
in 10's place (that's 8 in decimal), the 3's are:
30, 31, 32... 37
130, 131, ... 137
...
730, 731, .... 737
=> total number of 3's in 10's place is 8*8 = 64
in 100's place (that's 64 in decimal), the 3's are:
300, 301, ... 307
310, 311 ... 317
...
370, 371 .... 377
=> total number of 3's in 100's place is 8*8 = 64
thus, the total number of 3's in total is 64 + 64 + 64 = 192 - 13 years agoHelpfull: Yes(3) No(0)
TCS Other Question
36 people {a1, a2, ..., a36} meet and shake hands in a circular
fashion. In other words, there are totally 36 handshakes involving the
pairs, {a1, a2}, {a2, a3}, ..., {a35, a36}, {a36, a1}. Then size of the
smallest set of people such that the rest have shaken hands with at
least one person in the set is.
Six friends decide to share a big cake. Since all of them like the cake, they begin quarreling who gets to first cut and have a piece of
the cake. One friend suggests that they have a blindfold friend choose
from well shuffled set of cards numbered one to six. You check and find that this method works as it should simulating a fair throw of a die. You check by performing multiple simultaneous trials of picking the cards blindfold and throwing a die. You note that the number shown by the method of picking up a card and throwing a real world die, sums to a number between 2 and 12. Which total would be likely to appear more often 8,9 or 10?
a) 8 b) All are equally likely c) 9 d) 10