TCS
Company
1!+2!+....50!=?
Read Solution (Total 2)
-
- 31035053229546199656252032972759319953190362094566672920420940313
- 13 years agoHelpfull: Yes(4) No(31)
- this summation can be defined by reverse recurssion
if you want the sum of the factorials from 1 to n then start with
s(n) = n
and then
s(i) = i * ( 1 + s(i+1) )
and s(1) gives the summation
for example if n=4 we have
s(4)=4
s(3)=3*(4+1)=15
s(2)=2*(15+1)=32
s(1)=1*(28+1)=33
which agrees with
1!+2!+3!+4! = 1+2+6+24
using a computer program and using this recurssion method I get the sum as
31035053229546199656252032972759319953… - 13 years agoHelpfull: Yes(0) No(7)
TCS Other Question
33 people {a1, a2,...........,a33} meet and shake hands in a circular fashion. In other words, there are totally 33 handshakes involving the pairs, {a1,a2}, {a2,a3},..........,{a32, a33}, {a33, a1}. Then the size of the smallest set of people such that the rest have shaken hands with at least one person in the set is
a.11 b.13 c.24 d.50
lion and tiger r there.lion lies on Monday,tues,wends and tiger lies on thurs,frid,sat.
Lion said that today is one of those days when I lies.
Tiger said that today is one of those days when I lie too.Then find today?