1.If g (0)=g (1)=1
And g (n)= g (n-1) + g (n –2) find g (6);
Submitted by: AdministratorGiven g(0) = g(1) = 1.
To find: g(6)
g(n) = g(n-1) + g(n-2)
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.
7
Submitted by: Administrator
To find: g(6)
g(n) = g(n-1) + g(n-2)
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.
7
Submitted by: Administrator
Read Online Quantitative Aptitude Job Interview Questions And Answers
Top Quantitative Aptitude Questions
☺ | Two pipes A and B fill at A certain rate B is filled at 10,20,40,80,. If 1/16 of B if filled in 17 hours what time it will take to get completely filled? |
☺ | Find the fourth row, having the bit pattern as an integer in an 8-bit computer, and express the answer in its decimal value. |
☺ | One ship start his journey from a port and another ship start his journey from H at the same time, at which place they will meet? |
☺ | Which of the following set of numbers has the highest Standard deviation? |
Top Basic Job Categories
☺ | Targeted Selection Interview Questions. |
☺ | Business intelligence Interview Questions. |
☺ | Puzzles Interview Questions. |
☺ | Behavioral Interview Questions. |
☺ | Freshers Graduate Interview Questions. |