Fibonacci Numbers. Justin Stevens. Lecture 5. Justin Stevens Fibonacci Numbers (Lecture 5) 1 / 10

Similar documents
Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

Chapter 5.1: Induction

The Euclidean Algorithm

Mathematical Induction

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

Fibonacci numbers. Chapter The Fibonacci sequence. The Fibonacci numbers F n are defined recursively by

Homework #2 solutions Due: June 15, 2012

Lecture 3.2: Induction, and Strong Induction

Fall 2017 Test II review problems

Algebra for error control codes

Mathematical Induction

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

Notes 6: Polynomials in One Variable

Carmen s Core Concepts (Math 135)

Olympiad Number Theory Through Challenging Problems

12 Sequences and Recurrences

2301 Assignment 1 Due Friday 19th March, 2 pm

Quiz 1, Mon CS 2050, Intro Discrete Math for Computer Science

Lecture 7: Polynomial rings

Mathematical Induction

Writing Assignment 2 Student Sample Questions

Mathematical Induction. Section 5.1

PROBLEM SET 1 SOLUTIONS 1287 = , 403 = , 78 = 13 6.

Linear Algebra III Lecture 11

MAS114: Solutions to Exercises

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n.

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

Input Decidable Language -- Program Halts on all Input Encoding of Input -- Natural Numbers Encoded in Binary or Decimal, Not Unary

TILING PROOFS OF SOME FIBONACCI-LUCAS RELATIONS. Mark Shattuck Department of Mathematics, University of Tennessee, Knoxville, TN , USA

1.1 Inductive Reasoning filled in.notebook August 20, 2015

Notes for Recitation 6

Name: Mathematics 1C03

Sum of Squares. Defining Functions. Closed-Form Expression for SQ(n)

MAS114: Exercises. October 26, 2018

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

21 Induction. Tom Lewis. Fall Term Tom Lewis () 21 Induction Fall Term / 14

Recursive Definitions. Recursive Definition A definition is called recursive if the object is defined in terms of itself.

Recursive Definitions. Recursive Definition A definition is called recursive if the object is defined in terms of itself.

Divisibility properties of Fibonacci numbers

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

Introduction to Cryptology. Lecture 19

Number Theory Proof Portfolio

Induction and Recursion

COM S 330 Lecture Notes Week of Feb 9 13

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Grade 7/8 Math Circles. Continued Fractions

9 MODULARITY AND GCD PROPERTIES OF GENERALIZED FIBONACCI NUMBERS

Exam 2 Solutions. In class questions

Discrete Mathematics. Spring 2017

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

With Question/Answer Animations

Induction and recursion. Chapter 5

CHARACTERIZATION OF THE STRONG DIVISIBILITY PROPERTY FOR GENERALIZED FIBONACCI POLYNOMIALS

Wollongong College Australia

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

Ma/CS 6a Class 2: Congruences

DRAFT (Justin Stevens) Updated December 29, 2017

1.2 The Well-Ordering Principle

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

Chuck Garner, Ph.D. May 25, 2009 / Georgia ARML Practice

NOTES ON INTEGERS. 1. Integers

Discrete Mathematics. Spring 2017

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

Mathematical Induction. Rosen Chapter 4.1,4.2 (6 th edition) Rosen Ch. 5.1, 5.2 (7 th edition)

Introduction to Number Theory. The study of the integers

Chapter 3 Basic Number Theory

Math Circle at FAU 10/27/2018 SOLUTIONS

Solutions to Practice Final 3

Diophantine triples in a Lucas-Lehmer sequence

Olympiad Number Theory Through Challenging Problems

HW2 Solutions Problem 1: 2.22 Find the sign and inverse of the permutation shown in the book (and below).

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

Lecture Notes. Advanced Discrete Structures COT S

Appendix G: Mathematical Induction

PRACTICE PROBLEMS: SET 1

Math 13, Spring 2013, Lecture B: Midterm

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Modular Arithmetic (Read Sections 4.1 thro 4.4)

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

Ma/CS 6a Class 2: Congruences

Algorithm Complexity Comparison between Methods Factorization and Euclidean Algorithm to Find the Greatest Common Divisor

Conjectures and proof. Book page 24-30

Mathematical Induction

5: The Integers (An introduction to Number Theory)

Chapter 5: The Integers

MATHEMATICAL INDUCTION

The Euclidean Algorithm and Multiplicative Inverses

FIBONACCI NUMBER AND ITS DISTRIBUTION MODULO 3 k

3 - Induction and Recursion

Functional Programming Laboratory 3

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

Counting on Chebyshev Polynomials

Transcription:

Fibonacci Numbers Lecture 5 Justin Stevens Justin Stevens Fibonacci Numbers (Lecture 5) 1 / 10

Outline 1 Fibonacci Numbers Justin Stevens Fibonacci Numbers (Lecture 5) 2 / 10

Fibonacci Numbers The Fibonacci numbers show up in many unexpected situations and have many beautiful properties. We present a motivating example: Justin Stevens Fibonacci Numbers (Lecture 5) 3 / 10

Fibonacci Numbers The Fibonacci numbers show up in many unexpected situations and have many beautiful properties. We present a motivating example: Example. Consider a board of length n. How many ways are there to tile this board with squares (length 1) and dominos (length 2)? Justin Stevens Fibonacci Numbers (Lecture 5) 3 / 10

Fibonacci Numbers The Fibonacci numbers show up in many unexpected situations and have many beautiful properties. We present a motivating example: Example. Consider a board of length n. How many ways are there to tile this board with squares (length 1) and dominos (length 2)? Let the number of tilings of an n-board be f (n). Justin Stevens Fibonacci Numbers (Lecture 5) 3 / 10

Fibonacci Numbers The Fibonacci numbers show up in many unexpected situations and have many beautiful properties. We present a motivating example: Example. Consider a board of length n. How many ways are there to tile this board with squares (length 1) and dominos (length 2)? Let the number of tilings of an n-board be f (n). We calculate f (4): Table 1: The five tilings of a 4-board Hence f (4) = 5. For larger values of n, we need a different strategy. Justin Stevens Fibonacci Numbers (Lecture 5) 3 / 10

Fibonacci Numbers 2 Observe that if an n-board begins with a square, then we have to tile an n 1 board. However, if the n-board begins with a domino, then we have to tile an n 2 board. Justin Stevens Fibonacci Numbers (Lecture 5) 4 / 10

Fibonacci Numbers 2 Observe that if an n-board begins with a square, then we have to tile an n 1 board. However, if the n-board begins with a domino, then we have to tile an n 2 board. Therefore, f (n) = f (n 1) + f (n 2). Justin Stevens Fibonacci Numbers (Lecture 5) 4 / 10

Fibonacci Numbers 2 Observe that if an n-board begins with a square, then we have to tile an n 1 board. However, if the n-board begins with a domino, then we have to tile an n 2 board. Therefore, f (n) = f (n 1) + f (n 2). We see that f (1) = 1 and f (2) = 2, so we can compute: f (3) = f (2) + f (1) = 2 + 1 = 3 f (4) = f (3) + f (2) = 3 + 2 = 5 f (5) = f (4) + f (3) = 5 + 3 = 8. Justin Stevens Fibonacci Numbers (Lecture 5) 4 / 10

Fibonacci Numbers 2 Observe that if an n-board begins with a square, then we have to tile an n 1 board. However, if the n-board begins with a domino, then we have to tile an n 2 board. Therefore, f (n) = f (n 1) + f (n 2). We see that f (1) = 1 and f (2) = 2, so we can compute: f (3) = f (2) + f (1) = 2 + 1 = 3 f (4) = f (3) + f (2) = 3 + 2 = 5 f (5) = f (4) + f (3) = 5 + 3 = 8. The only difference between this and the Fibonacci numbers are that the latter begins with an extra 1. Therefore, f (n) = F n+1. Using this n-tiling, we can prove several identities regarding Fibonacci numbers. Justin Stevens Fibonacci Numbers (Lecture 5) 4 / 10

Property Example. Show that f (m + n) = f (m)f (n) + f (m 1)f (n 1). Justin Stevens Fibonacci Numbers (Lecture 5) 5 / 10

Property Example. Show that f (m + n) = f (m)f (n) + f (m 1)f (n 1). The left-hand side is simply the number of tilings of an (m + n)-board. Justin Stevens Fibonacci Numbers (Lecture 5) 5 / 10

Property Example. Show that f (m + n) = f (m)f (n) + f (m 1)f (n 1). The left-hand side is simply the number of tilings of an (m + n)-board. For the right-hand side, we have two cases: Justin Stevens Fibonacci Numbers (Lecture 5) 5 / 10

Property Example. Show that f (m + n) = f (m)f (n) + f (m 1)f (n 1). The left-hand side is simply the number of tilings of an (m + n)-board. For the right-hand side, we have two cases: If there is no domino at square m, we have f (m)f (n) tilings: 1 2 m 1 m m + 1 m + 2 m + n Justin Stevens Fibonacci Numbers (Lecture 5) 5 / 10

Sum Property If there is a domino at square m, we have f (m 1)f (n 1) tilings: 1 2 m 1 m m + 1 m + 2 m + 3 m + n Hence, f (m + n) = f (m)f (n) + f (m 1)f (n 1) as desired. Justin Stevens Fibonacci Numbers (Lecture 5) 6 / 10

Sum Property If there is a domino at square m, we have f (m 1)f (n 1) tilings: 1 2 m 1 m m + 1 m + 2 m + 3 m + n Hence, f (m + n) = f (m)f (n) + f (m 1)f (n 1) as desired. Substituting m = a and n = b 1 gives the Fibonacci identity F a+b = F a+1 F b + F a F b 1. Justin Stevens Fibonacci Numbers (Lecture 5) 6 / 10

Fibonacci Divisibility Example. Prove that F m F mq for all natural q. Justin Stevens Fibonacci Numbers (Lecture 5) 7 / 10

Fibonacci Divisibility Example. Prove that F m F mq for all natural q. We use induction. For q = 1, F m F m. For q = 2, F 2m = F m+1 F m + F m F m 1. Justin Stevens Fibonacci Numbers (Lecture 5) 7 / 10

Fibonacci Divisibility Example. Prove that F m F mq for all natural q. We use induction. For q = 1, F m F m. For q = 2, F 2m = F m+1 F m + F m F m 1. Suppose the statement is true for q = k, implying that F m F mk. Justin Stevens Fibonacci Numbers (Lecture 5) 7 / 10

Fibonacci Divisibility Example. Prove that F m F mq for all natural q. We use induction. For q = 1, F m F m. For q = 2, F 2m = F m+1 F m + F m F m 1. Suppose the statement is true for q = k, implying that F m F mk. We show it holds for q = k + 1. From the identity with a = mk and b = m: F mk+m = F mk+1 F m + F mk F m 1. Justin Stevens Fibonacci Numbers (Lecture 5) 7 / 10

Fibonacci Divisibility Example. Prove that F m F mq for all natural q. We use induction. For q = 1, F m F m. For q = 2, F 2m = F m+1 F m + F m F m 1. Suppose the statement is true for q = k, implying that F m F mk. We show it holds for q = k + 1. From the identity with a = mk and b = m: F mk+m = F mk+1 F m + F mk F m 1. Since F m F mk (hypothesis), F m F mk+m by the linear combination theorem. Hence, the statement is proven for q = k + 1. Justin Stevens Fibonacci Numbers (Lecture 5) 7 / 10

Consecutive Fibonacci Numbers Example. Show that consecutive Fibonacci numbers are relatively prime. Justin Stevens Fibonacci Numbers (Lecture 5) 8 / 10

Consecutive Fibonacci Numbers Example. Show that consecutive Fibonacci numbers are relatively prime. Proof. gcd(f n+2, F n+1 ) = gcd(f n+1, F n ) = gcd(f n, F n 1 ) = = gcd(f 2, F 1 ) = 1. Justin Stevens Fibonacci Numbers (Lecture 5) 8 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, F m = F nq+r = F nq+1 F r + F nq F r 1. Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, F m = F nq+r = F nq+1 F r + F nq F r 1. Since F n F nq, we can subtract multiples of F n using Euclidean algorithm: gcd(f m, F n ) = gcd(f nq+1 F r + F nq F r 1, F n ) = gcd(f nq+1 F r, F n ). Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, F m = F nq+r = F nq+1 F r + F nq F r 1. Since F n F nq, we can subtract multiples of F n using Euclidean algorithm: gcd(f m, F n ) = gcd(f nq+1 F r + F nq F r 1, F n ) = gcd(f nq+1 F r, F n ). Finally, gcd(f nq+1, F n ) = 1 since consecutive Fibonacci numbers are relatively prime: gcd(f m, F n ) = gcd(f r, F n ). Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, F m = F nq+r = F nq+1 F r + F nq F r 1. Since F n F nq, we can subtract multiples of F n using Euclidean algorithm: gcd(f m, F n ) = gcd(f nq+1 F r + F nq F r 1, F n ) = gcd(f nq+1 F r, F n ). Finally, gcd(f nq+1, F n ) = 1 since consecutive Fibonacci numbers are relatively prime: gcd(f m, F n ) = gcd(f r, F n ). For example, if m = 182 and n = 65, gcd(182, 65) = 13 and gcd(f 182, F 65 ) = gcd(f 65, F 52 ) = gcd(f 52, F 13 ) = F 13. Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Fibonacci GCD Example. Show that gcd(f m, F n ) = F gcd(m,n). Write m = nq + r using the division algorithm. Using the Fibonacci identity, F m = F nq+r = F nq+1 F r + F nq F r 1. Since F n F nq, we can subtract multiples of F n using Euclidean algorithm: gcd(f m, F n ) = gcd(f nq+1 F r + F nq F r 1, F n ) = gcd(f nq+1 F r, F n ). Finally, gcd(f nq+1, F n ) = 1 since consecutive Fibonacci numbers are relatively prime: gcd(f m, F n ) = gcd(f r, F n ). For example, if m = 182 and n = 65, gcd(182, 65) = 13 and gcd(f 182, F 65 ) = gcd(f 65, F 52 ) = gcd(f 52, F 13 ) = F 13. The conclusion is equivalent to gcd(f m, F n ) = F gcd(m,n). Justin Stevens Fibonacci Numbers (Lecture 5) 9 / 10

Other Properties The below properties can all be proved using the tiling method: F 1 + F 2 + F 3 + + F n = F n+2 1. F 1 + F 3 + F 5 + + F 2n 1 = F 2n. F1 2 + F 2 2 + F 3 2 + + F n 2 = F n F n+1. F n+1 = ( n) ( 0 + n 1 ) ( 1 + n 2 ) 2 +. Try them out yourself! Justin Stevens Fibonacci Numbers (Lecture 5) 10 / 10