TCS
Company
undefined
In a sequence of integers, A(n) = A(n-1) - A(n-2), where A(n) is the n th term in the sequence, n
is an integer and n >=3, A(1)=1,A(2)=1 . Calculate S(1000), where S(1000) is the sum of the first
1000 terms
Read Solution (Total 3)
-
- A(1)=1
A(2)=1
A(3)=1-1=0
A(4)=0-1=-1
A(5)=-1-0=-1
A(6)=-1-(-1)=0
A(7)=0-(-1)=1
A(8)=1-0=1
And so on.... we can clearly see that After every n/6 sum of n no become 0
So till S(996) total will be 0
A(997)=1
A(998)=1
A(999)=0
A(1000)=-1
So S(1000) = 1
so 1 is the answer. - 9 years agoHelpfull: Yes(15) No(1)
- answer =1.
see a(1)=1;
a(2)=1;
a(3)=a(2)-a(1)=1-1=0;
a(4)=-1;
a(5)=-1;
a(6)=-2;
a(7)=-1;
a(8)=1;
a(9)=2;
a(10)=1;
so the sum of first 10 is 1;
some will be same for every 10 terms;
so the ans. will be 1. - 9 years agoHelpfull: Yes(1) No(0)
- 500500
=n(n+1)/2
=1000(1001)/2
=500500 - 9 years agoHelpfull: Yes(0) No(8)
TCS Other Question
1,2,2,3,3,3,4,4,4,4,1,1,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,......... in the above sequence what is the number at the position 2888 of the sequence.
1)in how many ways can the letters of english alphabet be arranged so that there are 7 letters between A & B n no repeated.
2)Find no.of zeroes in 15*32*25*22*40*75*98*112*125
3)what must be added to 5678 to get remainder 35 when divided by 460?
4) f(x)=1+x+x^2+......x^6.
Find remainder when f(x^7) is divided by f(x).
5)How many integers satisfy (x^2-x-1)^(x+2)=1?
6)there are 3 single digit distinct numbers A,B,C in geometric progression.
how many possible different values are for abs(A+B-C).