Advanced Math/arithmatic

Advertisement


Question
g(0)=1,g(1)=-1;if g(n)=g(n-1)+g(n-2)then find the value of g(6)?(please give me answer with explanation)

Answer
Hi Leela,

Okay, it looks like you are defining the terms in a sequence
by what's called a recursive rule.

The first two terms are given to you:

g(0) = 1   and g(1) = -1.

The equation g(n) = g(n-1) + g(n-2) tells you how to get the next terms.  It just says to get the following terms, add the two previous terms.  If you look  at the subscripts, compared to "n", n-1 is the one before it, and n-2 the one before that.  For example, if n = 2,

    g(2) = g(1) + g(0) = -1 + 1 = 0

then g(3) = g(2) + g(1) = 0 + (-1)= -1

    g(4) = g(3) + g(2) = -1 + 0 = -1

    g(5) = g(4) + g(3) = -1 + -1 = -2

    g(6) = g(5) + g(4) = -2 + -1 = -3.

Hope this helps out.

Steve Holleran

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Steve Holleran

Expertise

I can help with all math questions from basic math to Calculus. Whether it`s consumer questions, or questions from high school or college students, I have probably dealt with it at some time in my career.

Experience

33 years teaching experience in NJ public schools

Education/Credentials
B.S. Mathematics : Wake Forest University 1972 M.S. Mathematics : Monmouth University 1981

©2012 About.com, a part of The New York Times Company. All rights reserved.