menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Generate the first 5 terms of this sequence:. f(1) = 0 and f(2) = 1, f(n) = f(n - 1) + f(n - 2), for n > 2. A. 0, -1, 1, 0, 2. B. 0, 1, 1, 2, 3. C. 0, 1, 2, 2, 3. D. 0, 1, 1, 2, 2.
asked
Mar 9, 2017
126k
views
2
votes
Generate the first 5 terms of this sequence:. f(1) = 0 and f(2) = 1, f(n) = f(n - 1) + f(n - 2), for n > 2. A. 0, -1, 1, 0, 2. B. 0, 1, 1, 2, 3. C. 0, 1, 2, 2, 3. D. 0, 1, 1, 2, 2.
Mathematics
high-school
Tmaric
asked
by
Tmaric
7.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
1
vote
You are given a function of f(n) = f(n - 1) + f(n - 2) where
f(1) = 0 and f(2) = 1. You are asked to generate the first five terms of this sequence. All you need to do is to substitute the value of n greater than 2.
for n = 3
f(3) = f(3 - 1) + f(3 - 2)
f(3) = f(2) + f(1)
since f(2) = 1 and f(1) = 0
so, f(3) = 1 + 0 = 1
for n = 4
f(4) = f(4 - 1) + f(4 - 2)
f(4) = f(3) + f(2)
you have solved that for f(3) = 1 and since f(2) = 1
so, f(4) = 1 + 1 = 2
for n = 5
f(5) = f(5 - 1) + f(5 - 2)
f(5) = f(4) + f(3)
you have solved that for f(4) = 2 and f(3) = 1
so, f(5) = 2 + 1 = 3
the sequence is 0, 1, 1, 2, 3 so the answer is letter B
Hasan Karaman
answered
Mar 9, 2017
by
Hasan Karaman
6.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
1
vote
Given the f(2) = 1 and f(1) = 0. The value of f(3) may be calculated by,
f(3) = f(2) + f(1) = 1 + 0 = 1
For f(4),
f(4) = f(3) + f(2) = 1 + 1 = 2
For f(5),
f(5) = f(4) + f(3) = 2 + 1 = 3
Thus, the terms are 0, 1, 1, 2, and 3. The answer is letter B.
Peter Hauge
answered
Mar 14, 2017
by
Peter Hauge
6.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
7.8m
questions
10.4m
answers
Other Questions
How do you can you solve this problem 37 + y = 87; y =
What is .725 as a fraction
How do you estimate of 4 5/8 X 1/3
A bathtub is being filled with water. After 3 minutes 4/5 of the tub is full. Assuming the rate is constant, how much longer will it take to fill the tub?
i have a field 60m long and 110 wide going to be paved i ordered 660000000cm cubed of cement how thick must the cement be to cover field
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org