TCS
Company
If g(0)=g (1)=1 and g (n)= g (n-1) + g (n ?2) find g (6);
Read Solution (Total 1)
-
- g(2) = g(1) + g(0) = 1+1 = 2
g(3) = g(2) + g(1) = 2+1 =3
g(4) = g(3) + g(2) = 3+2 =5
g(5) = g(4) + g(3) = 5+3 =8
g(6) = g(5) + g(4) = 8+5 =13 - 13 years agoHelpfull: Yes(2) No(0)
TCS Other Question