CALCULATING FIBONACCI VECTORS

Similar documents
CALCULATION OF FIBONACCI VECTORS

Infinite Sequences and Series

A GENERALIZATION OF THE SYMMETRY BETWEEN COMPLETE AND ELEMENTARY SYMMETRIC FUNCTIONS. Mircea Merca

Math 155 (Lecture 3)

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

CHAPTER I: Vector Spaces

Assignment 2 Solutions SOLUTION. ϕ 1 Â = 3 ϕ 1 4i ϕ 2. The other case can be dealt with in a similar way. { ϕ 2 Â} χ = { 4i ϕ 1 3 ϕ 2 } χ.

Recurrence Relations

R is a scalar defined as follows:

Linear Regression Demystified

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

Roger Apéry's proof that zeta(3) is irrational

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

CHAPTER 5. Theory and Solution Using Matrix Techniques

Determinants of order 2 and 3 were defined in Chapter 2 by the formulae (5.1)

1 Last time: similar and diagonalizable matrices

A Simplified Binet Formula for k-generalized Fibonacci Numbers

ANOTHER GENERALIZED FIBONACCI SEQUENCE 1. INTRODUCTION

NUMERICAL METHODS FOR SOLVING EQUATIONS

Orthogonal transformations

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

Polynomial Functions and Their Graphs

C. Complex Numbers. x 6x + 2 = 0. This equation was known to have three real roots, given by simple combinations of the expressions

The r-generalized Fibonacci Numbers and Polynomial Coefficients

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

2.4 - Sequences and Series

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

Math 113 Exam 3 Practice

Comparison Study of Series Approximation. and Convergence between Chebyshev. and Legendre Series

6.3 Testing Series With Positive Terms

MAT 271 Project: Partial Fractions for certain rational functions

THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS

Theorem: Let A n n. In this case that A does reduce to I, we search for A 1 as the solution matrix X to the matrix equation A X = I i.e.

Eigenvalues and Eigenvectors

6.003 Homework #3 Solutions

2.4 Sequences, Sequences of Sets

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

Chapter 10: Power Series

SNAP Centre Workshop. Basic Algebraic Manipulation

Definitions and Theorems. where x are the decision variables. c, b, and a are constant coefficients.

Bertrand s Postulate

, then cv V. Differential Equations Elements of Lineaer Algebra Name: Consider the differential equation. and y2 cos( kx)

Matrices and vectors

Chimica Inorganica 3

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients:

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

The Growth of Functions. Theoretical Supplement

Generating Functions. 1 Operations on generating functions

The Random Walk For Dummies

The Method of Least Squares. To understand least squares fitting of data.

Appendix K. The three-point correlation function (bispectrum) of density peaks

Chapter Vectors

Frequency Response of FIR Filters

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

U8L1: Sec Equations of Lines in R 2

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

SEQUENCES AND SERIES

CHAPTER 10 INFINITE SEQUENCES AND SERIES

Representations of State Vectors and Operators

In the preceding Chapters, the mathematical ideas underpinning the quantum theory have been

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Enumerative & Asymptotic Combinatorics

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Statistics

Math 61CM - Solutions to homework 3

1. By using truth tables prove that, for all statements P and Q, the statement

The Discrete Fourier Transform

Chapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

In algebra one spends much time finding common denominators and thus simplifying rational expressions. For example:

A Combinatoric Proof and Generalization of Ferguson s Formula for k-generalized Fibonacci Numbers

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

DIVISIBILITY PROPERTIES OF GENERALIZED FIBONACCI POLYNOMIALS

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

Machine Learning for Data Science (CS 4786)

4 The Sperner property.

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

Review Problems 1. ICME and MS&E Refresher Course September 19, 2011 B = C = AB = A = A 2 = A 3... C 2 = C 3 = =

Algebra of Least Squares

Infinite Series. Definition. An infinite series is an expression of the form. Where the numbers u k are called the terms of the series.

Hoggatt and King [lo] defined a complete sequence of natural numbers

Enumerative & Asymptotic Combinatorics

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

Unit 6: Sequences and Series

Random Models. Tusheng Zhang. February 14, 2013

is also known as the general term of the sequence

Some remarks for codes and lattices over imaginary quadratic

a for a 1 1 matrix. a b a b 2 2 matrix: We define det ad bc 3 3 matrix: We define a a a a a a a a a a a a a a a a a a

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

Appendix: The Laplace Transform

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

7 Sequences of real numbers

CS284A: Representations and Algorithms in Molecular Biology

Machine Learning for Data Science (CS 4786)

Lemma Let f(x) K[x] be a separable polynomial of degree n. Then the Galois group is a subgroup of S n, the permutations of the roots.

UNIT #5. Lesson #2 Arithmetic and Geometric Sequences. Lesson #3 Summation Notation. Lesson #4 Arithmetic Series. Lesson #5 Geometric Series

Transcription:

THE GENERALIZED BINET FORMULA FOR CALCULATING FIBONACCI VECTORS Stuart D Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithacaedu ad Dai Novak Departmet of Mathematics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: ovak@ithacaedu Draft of 008 May 30 1

INTRODUCTION The aim of this chapter is to fid a formula to calculate ay Fiboacci vector directly, ot recursively, geeralizig Biet s formula for the origial Fiboacci sequece We begi with the recursive defiitio of Fiboacci vector sequeces Next, we discuss the roots of the Fiboacci characteristic polyomial ad costruct the root vector ad root matrix The, we cosider liear combiatios of the powers of the root vector Evetually, we fid the particular combiatio that represets Fiboacci vectors We show that i the case of two-dimesioal vectors, this represetatio of the compoets of the vectors is idetical to Biet s formula for calculatig Fiboacci umbers We also illustrate the use of the Fiboacci vector calculatio formula i the case of three-dimesioal vectors THE RECURSIVE DEFINITION Let be the dimesio of a vector space Let F represet a sequece of vectors i this - dimesioal space, defied as follows Such a sequece of vectors is called a Fiboacci vector sequece ad each vector i the sequece is called a Fiboacci vector Let F k represet the Fiboacci vector of idex k, the vector that is displaced by k steps i the sequece from the seed vector F 0 To move oe step from a give vector F k to the ext vector F k + 1 i the sequece is accomplished by applyig the -dimesioal Fiboacci vector sequece augmetatio matrix Q F T k + 1 Q F T k 1 The superscript T attached to the symbol of a vector or matrix idicates the traspose of that etity Because we usually defie vectors without such a superscript to represet row vectors, for example F k, the symbol of a vector with a T superscript represets a colum vector, for example F T k I this recursive defiitio of a Fiboacci vector sequece, the augmetatio matrix Q trasforms the give vector ito the ext vector 0 0 0 1 0 0 1 1 Q 0 1 1 1 1 1 1 1 The elemets of the augmetatio matrix are represeted by Q i, j, where 1 i is the row idex ad 1 j is the colum idex 0 i + j Q i, j 1 i + j > The effect or the applicatio of the augmetatio matrix is to make the ith compoet of the ext vector equal to the sum of the last i + 1 compoets of the give vector Note that, because the augmetatio 3

matrix is a symmetric matrix, Q T Q, we ca write equatio 1 without superscript T s F k + 1 F k Q 4 The two equatios 1 ad 4 are equivalet defiitios of a Fiboacci vector sequece They are described as recursive defiitios, because they are used repeatedly to relate vectors that are separated by more tha oe step i the sequece The recursive defiitio of the sequece is ot eough, however We also eed to specify a startig poit, the seed vector of the sequece For a Fiboacci vector sequece, we specify the followig seed vector F 0 F 0 0 0 0 1 5 All but the last compoet of the seed vector are 0s; the last compoet is a 1 0 1 j < F 0, j 1 j 6 Note that we could have specified a differet seed vector, either trivially by specifyig a differet vector i the same sequece, or sigificatly by specifyig a vector ot i this sequece ad geeratig a o-fiboacci vector sequece But we shall restrict our attetio here to Fiboacci sequeces grow from the specified seed vectors The set of the first Fiboacci vectors F k for 0 k 1 forms the the seed matrix F 0 1 F 0 F 0 F 1 1 F 1 F 0 F 0 Q F 0 Q 1 The kth row of the seed matrix is the Fiboacci vector of idex k 1, F k 1 7 F 0 1 k F k 1 F 0 Q k 1 8 THE CHARACTERISTIC POLYNOMIAL The characteristic polyomial of degree i the variable x is D x, D x Q xi 9 where the pair of vertical lies extracts the determiat of the eclosed matrix ad I is the by idetity matrix It may be expressed explicitly as a polyomial, a power series of degree i the variable x D x d jx j 10 j0 3

I aother chapter, we determie the values of the coefficiets d j This polyomial has roots x i for 1 i The polyomial may also be writte i terms of these roots D x 1 i1 x x i 11 The roots of the characteristic polyomial are real ad distict, so that they may be ordered We will place the roots i ascedig order, so that i < j x i < x j The ordered set of roots is the root vector x x x 1 x x 1 It is coveiet to have a otatio for a vector, each compoet of which is a certai power of the same compoet of aother vector Therefore, defie the jth power of a vector, v j, as the vector the ith compoet of which is the jth power of the ith compoet of the vector v v j i vi j 13 Thus, for example, we will write x j i for the ith compoet of the jth power of the vector x, istead of its equivalet expressio x i j for the jth power of the ith compoet of the vector x Defie the root matrix X as the matrix whose ith row, X i, is x i 1, the i 1th power of the root vector x X i x i 1 14 Thus, the elemet X i, j of the root matrix X i its ith row ad jth colum is the i 1th power of the jth root of the characteristic polyomial of degree X i, j x i 1 j 15 Displayed i more detail, the root matrix X appears as follows x 0 1 1 1 1 x 1 x x 1 x x X x 1 x 1 x 1 1 x 1 x 1 16 Here, the symbol 1 represets the -dimesioal row vector, all of whose elemets are 1s The defiig property of the roots of the characteristic polyomial is that, if the variable x is set equal to the value of oe of its roots x i, the characteristic polyomial evaluates to zero D x i d jx j i 0 17 j0 4

Let us form arbitrary liear combiatios A k of the kth powers of the roots x i of the characteristic polyomial A k x k a x k ia i 18 Thik of this as the ier scalar or dot product of x k, the kth power of the -dimesioal root vector x, with a arbitrary -dimesioal colum vector a Such arbitrary combiatios satisfy the followig relatio d ja j 0 19 j0 j0 i1 i0 j0 i0 j0 The proof of this relatio 19 follows straightforwardly from the defiitio of the arbitrary combiatios 18 ad the defiig property of the roots of the characteristic polyomial 17 by rearragemet d ja j d j x j ia i a i d jx j i a id x i 0 0 i1 THE GENERALIZATION OF BINET S FORMULA Now, let us form special liear combiatios of the roots of the characteristic polyomial to represet the compoets of Fiboacci vectors Form the jth compoet of the kth Fiboacci vector, F k, j as the ier product of x k with a differet -dimesioal colum vector f, j for each compoet F k, j x k f, j x k if i, j 1 The symbol f represets a matrix, the Fiboacci root power combiatio matrix; f i, j, the elemet i its ith row ad jth colum; f, j, its jth colum vector; ad f i,, its ith row vector The kth Fiboacci vector is represeted by F k F k x k f i1 x k if i, We do ot kow the value of the combiatio matrix f, but if we could figure it out, the we would have a procedure for calculatig ay Fiboacci vector, without havig to calculate all the vectors i betwee i1 Let us represet aew the seed matrix F 0 1, which we defied i 7, by substitutig ito each of its rows this represetatio of each of the first Fiboacci vectors as combiatios of powers of the root vector F 0 F 0 F 1 1 F 1 x 0 f x 1 f x 1 f 1 x x 1 f 3 5

I equatio 3, you see that the seed matrix is the product of what you recogize as the root matrix X ad the combiatio matrix f F 0 1 X f 4 We ca fid the combiatio matrix f by multiplyig this equatio by the iverse of the root matrix X 1 f X 1 F 0 1 5 Now, substitute this ito equatio to fid the kth Fiboacci vector Fially, we fid that the kth Fiboacci vector is the product of the kth power of the root vector x k, the iverse of the root matrix X 1 ad the seed matrix F 0 1, i that order F k x k X 1 F 0 1 Here at last is the Fiboacci vector calculatio formula, which it was the aim of this chapter to fid To costruct the seed matrix, you have to calculate the first 1 vectors after the seed vector, which is give Ad to costruct the root vector ad the root matrix, you have to determie the roots x i for 1 i of the characteristic polyomial D x But havig doe so, it is ot too difficult to apply the Fiboacci vector calculatio formula of equatio 6 to calculate ay vector you wat The recursive defiitio of Fiboacci vector sequeces, equatio 1 or 4, provides a procedure to calculate ay Fiboacci vector, but i order to do so, you must calculate all the vectors betwee the seed vector ad the oe that you wat, oe after the other What we have foud here i equatio 6 is a formula for calculatig ay Fiboacci vector, without the eed to calculate all the vectors i betwee It is certaily a more complicated process, but if your aim is to calculate a Fiboacci vector F k of high idex k, it is surely less tedious The formula i equatio 6 is the geeralizatio to Fiboacci vectors of Biet s formula for calculatig the umbers of the origial Fiboacci sequece, for, as you will see i the ext sectio, our formula for reduces to Biet s formula for the case 6 Recall that the compoets of the vectors of the two-dimesioal Fiboacci vector sequece F are the umbers of the origial Fiboacci sequece F BINET S FORMULA Cosider the case The characteristic polyomial is D x 1 x + x The root vector x is x 1, x, but let us write it as x 1, x for brevity i this case x 1, x 1 φ, φ 1 5, 1 + 5 1 cos α, cos α 7 where α π 5 is the miimal agle betwee the edges sides or diagoals of a regular petago 6

Now, let us apply the geeral formula 6 for calculatig Fiboacci vectors i dimesios to calculate the kth Fiboacci vector i two dimesios 1 F k x k 1, x k 1 1 0 1 1 φ k, φ k 1 1 x 1 x 1 1 1 φ φ φ k 1 φ k, φ k 1 1 φ k 1 + φ k 1 φ k 0 1 1 1 1 where F k, F k 1 + F k F k xk x k 1 φk 1 φ k x x 1 φ 1 φ 1 F k, F k + 1 1+ k 5 5 1 k 5 cos α k 1 cos α k 4 cos α 1 8 9 Observe that this is Biet s formula for calculatig the kth Fiboacci umber Thus, we see that the geeral formula 6 for calculatig Fiboacci vectors i dimesios is the geeralizatio of Biet s formula from two to > higher dimesioal Fiboacci vectors A COMPUTER PROGRAM TO CALCULATE FIBONACCI VECTORS To calculate -dimesioal Fiboacci vectors usig the Biet formula is possible with pecil ad paper, but it ca be doe more readily with a had-held calculator To calculate higher dimesioal Fiboacci vectors, however, you really eed more complex techology, a computer ad sophisticated mathematical software The followig Mathematica program calculates the kth Fiboacci vector i dimesios usig the geeralized Biet formula 3 qm Table[If[i+j<,0,1],{i,1,},{j,1,}] sv Table[If[i<,0,1],{i,1,}] sf[v_] : qm v sm NestList[sf,sv,-1] pc Table[-1^k+Floor[-k/]*Biomial[-k+Floor[k/],-k],{k,0,}] cp Sum[pc[[k+1]]*x^k,{k,0,}] xr Flatte[NSolve[cp0,x]] xv Table[xr[[i,]],{i,1,}] xm Table[xv^i,{i,0,-1}] fv[k_] : xv^k Iverse[xm] sm k 0 Prit[fv[k]] 7

I this program, the symbol represets the dimesio, qm represets the augmetatio matrix Q, sv, the seed vector F 0, sm, the seed matrix F 0 1, pc, the vector of characteristic polyomial coefficiets d, cp, the characteristic polyomial D x, xv, the root vector x, xm, the root matrix X, ad fv[k], the kth Fiboacci vector F k Specific values 3 ad 0 are assiged i this program to the variables ad k, respectively, but you are free to assig them ay values you choose Almost every lie i this program implemets a equatio i this chapter For example, the secod lie implemets the defiitio of the augmetatio matrix Q, equatio 3 The third lie from the bottom is the climax of the program, as it implemets the geeralized Biet formula, equatio 6, to calculate a Fiboacci vector F k for arbitrary ad k There is, however, oe lie that implemets a equatio that is ot i this chapter, the sixth lie, which implemets the defiitio of the characteristic polyomial coefficiets d k by a equatio i the chapter o the characteristic polyomial CASE 3 Now, cosider the case 3 The characteristic polyomial is D 3 x 1 + x + x x 3 The root vector x 3 is x 1, x, x 3 3, but, as before, let us write it as x 1, x, x 3 for brevity x 1, x, x 3 1 7 cosβ1 β 3, 1 7 cosβ1 + β 3, 3 3 3 1 7 cosβ3 30 0801937735, +0554958131, +46979604 31 There are iterestig relatios amog the roots β 1 ta 1 3 π 3 β 3 ta 1 7 3 3 33 x 1 1 1 x 34 x 1 + x + x 3 35 CONCLUSION I this chapter, we achieved the goal which it was our aim to reach We foud a formula, equatio 6, for calculatig Fiboacci vectors, which we showed is the geeralizatio of Biet s formula, equatio 9, for calculatig Fiboacci umbers The importace of this formula is that it allows you to calculate a desired Fiboacci vector F k of high idex k > without havig to calculate all the vectors betwee it ad the seed vector F 0 The sigificace of this fidig is that demostrates oce agai that Fiboacci vector sequeces geeralize the origial Fiboacci sequece i the most atural ad powerful maer The most useful techique we have employed i these ivestigatios is the cosistet use of vector ad matrix 8

otatio The most amazig observatio we have made here is that, although Biet s formula ivolves 5, the square root of 5, ad its higher dimesioal geeralizatios ivolve complicated combiatios of the roots of other umbers, the output of these formulas is always itegral 9