TCS
Company
Numerical Ability
Algebra
18. G(0)=-1, G(1)=1, G(N)=G(N-1) - G(N-2), G(5)= ?
Read Solution (Total 11)
-
- G(2) = G(1)-G(0) = 2
Similarly find G(3) then G(4) and G(5)
G(5)=-2 - 9 years agoHelpfull: Yes(23) No(0)
- G(2)=G(1)-G(0)=1-(-1)=2
G(3)=G(2)-G(1)=2-1=1
G(4)=G(3)-G(2)=1-2=-1
G(5)=G(4)-G(3)=-1-1=-2 - 9 years agoHelpfull: Yes(7) No(1)
- m sorry... the ans is -2... it is mistyped by me
- 9 years agoHelpfull: Yes(2) No(0)
- G(2) = G(1)-G(0) = 1- (-1)= 1+1 =2
G(3) = G(2) - G(1) = 2-1 =1
G(4)= G(3) - G(2) = 1-2 = -1
G(5) = G(4) - G(3) = -1 - 1 = -2 - 9 years agoHelpfull: Yes(1) No(1)
- given G(0)=-1,G(1)=1 AND G(N)=G(N-1) - G(N-2)
put N=2
G(2)=G(1)-G(0)
=1-(-1)=2
G(3)=G(2)-G(1)=2-1 =1
G(4)=G(3)-G(2)=1-2=-1
G(5)=G(4)-G(3)=-1-1=-2,
HENCE G(5) = -2
- 9 years agoHelpfull: Yes(1) No(0)
- G(5)=-3
as G(2)=2, G(3)=1,G(4)=-1. Putting these values we get G(5)=-3 - 9 years agoHelpfull: Yes(0) No(1)
- G(5)=G(4)-G(3)
similarly find the values of G(4), G(3), G(2).
putting these values we get, G(5)= 2. - 9 years agoHelpfull: Yes(0) No(1)
- G(5)=G(5-1)-G(5-2)-G(5-3)-G(5-4)-G(5-5)
=G(4)-G(3)-G(2)-G(1)
= -2 - 9 years agoHelpfull: Yes(0) No(0)
- G(5)=G(5-1)-G(5-2)=G(4)-G(3)
=7-5
= 2. - 9 years agoHelpfull: Yes(0) No(3)
- Clearly its -2
- 9 years agoHelpfull: Yes(0) No(1)
- G(N)=G(N-1) - G(N-2)
G(5)= G(4)- G (3)
= {G(3) -G(2)}-G(3)= -G(2)
= - {G(1)-G(0)}
= - {1-(-1)}
= -2 - 9 years agoHelpfull: Yes(0) No(0)
TCS Other Question