Infosys
Company
If g (0)=g (1)=1
And g (n)= g (n-1) + g (n –2) find g (6).
Read Solution (Total 1)
-
- g(6) = 13
Sol:
G(0) = 1
G(1) = 1
G(2) = G(1) + g(0) = 2
G(3) = g(2) + g(1) = 3
G(4) = g(3) + g(2) = 5
G(5) = g(4) + g(3) = 8
G(6) = g(5) +g (4) = 13 - 10 years agoHelpfull: Yes(0) No(0)
Infosys Other Question