Week 6 - Recurrences and Methods of Proof Flashcards
How is the fibonnaci sequence defined?
F_{n} = F_{n-1} + F_{n-2}
What is a closed form formula?
Being able to find the “nth” term in a sequence based on a formula.
F(n-1)*F(n+1) = ?
F(n^2) + (-1)^n
take 3 sequences of fibonnacci, take the two outer ones, multiply them, and you get the middle one squared by either adding or substracting 1
- an = an-1 + d is an ____, it also has constant differences
arithmetic sequence
- an = r * an-1 is a ____
geometric sequence
- A homogeneous recurrence relation what is it?
- A homogeneous recurrence relation is one that evaluates to 0 when 0 is plugged into the a(j) side on the right hand side
a. Homogeneous means same (LS = RS)
- An arithmetic sequence is a sequence with the difference between two consecutive terms _____. The difference is called the common difference. A geometric sequence is a sequence with the ____ between two consecutive terms constant.
constant, ratio
The Golden Ratio
i. Let a and b be two positive numbers such that a
How to find a close form solution?
a. Look at the information/variables you’re given and figure it out (i.e. subscripts, sample values or sequences)
b. Look at differences (first, second, third) which gives you linear, quadratic or polynomial if it’s a constant difference
i. Create a set of equations and keep reducing equations until you have 2 that you can subtract
ii. Then check that it works for your values (or do a proof by induction)