SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
Suppose that a>b>0, that Euclid's algorithm computes gcd(a,b) in n steps, and that a is the
smallest integer with this property (that is, if a'>b'>0 and gcd(a',b') requires n steps, then
a'>=a); show that a and b are consecutive Fibonacci numbers a=fn(plus)2 and b=fn(plus)1.
Solution
Let quotient of a and b is =Q(n)
Remainder of a and b is=R(n)
n is the step.
n-steps sequence for a and b (with quotients q_{n} and remainders r_{n} at nth step) along with
the recursive relationships for Fibonacci numbers:
By Euclid's algorithm
Step (1)
a = bQ{1} + R{1};
can be written as:
F{n+1} = F{n} + F{n-1};
Step (2)
b =R{1}Q{2} + R{2};
F{n} = F{n-1} + F{n-2}
Step (3)
R{1} =R{2}Q{3}+ R{3};
F{n-1} = F{n-2} + F{n-3}
................................................going to n-1 step.
Step (n-1)
R{n-3} =R{n-2}Q{n-1} + R{n-1};
F{3} = F{2} + F{1}
Step ( n)
R{n-2} = R{n-1}Q{n} + 0;
F{2} = F{1} + F{0}
Since every Q 1 and R{n-1} 1 = F{1} from Step (n), we have
R{n-2} = R{n-1}Q{n} F{1}*1 + F{0} = F{2}
Going up, Step (n-1) yields
R{n-3} =R{n-2}Q{n-1} +R{n-1} F{2}*1 + F{1} = F{3},
similarly backtracking the steps to Step (1), we'll have finally
a = bQ{1} + R{1} F{n} + F{n-1} = F{n+1}
a>{n+1}
Thus,
a=F{n+2}
similarly,we will get
b+F{n+1}

Weitere ähnliche Inhalte

Ähnlich wie Suppose that ab0, that Euclids algorithm computes gcd(a,b) in n .pdf

Aieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjeeAieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjee
Mr_KevinShah
 
Analysis Of Algorithms Ii
Analysis Of Algorithms IiAnalysis Of Algorithms Ii
Analysis Of Algorithms Ii
Sri Prasanna
 
SMB_2012_HR_VAN_ST-last version
SMB_2012_HR_VAN_ST-last versionSMB_2012_HR_VAN_ST-last version
SMB_2012_HR_VAN_ST-last version
Lilyana Vankova
 
4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2
Malika khalil
 

Ähnlich wie Suppose that ab0, that Euclids algorithm computes gcd(a,b) in n .pdf (20)

Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
Maths formulas
Maths formulasMaths formulas
Maths formulas
 
Assignment 1
Assignment 1Assignment 1
Assignment 1
 
Aieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjeeAieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjee
 
Maieee03
Maieee03Maieee03
Maieee03
 
An Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve CryptographyAn Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve Cryptography
 
Chapter 1(4)SCALAR AND VECTOR
Chapter 1(4)SCALAR AND VECTORChapter 1(4)SCALAR AND VECTOR
Chapter 1(4)SCALAR AND VECTOR
 
Further pure mathmatics 3 vectors
Further pure mathmatics 3 vectorsFurther pure mathmatics 3 vectors
Further pure mathmatics 3 vectors
 
Embedding and np-Complete Problems for 3-Equitable Graphs
Embedding and np-Complete Problems for 3-Equitable GraphsEmbedding and np-Complete Problems for 3-Equitable Graphs
Embedding and np-Complete Problems for 3-Equitable Graphs
 
Imc2020 day1&2 problems&solutions
Imc2020 day1&2 problems&solutionsImc2020 day1&2 problems&solutions
Imc2020 day1&2 problems&solutions
 
Analysis Of Algorithms Ii
Analysis Of Algorithms IiAnalysis Of Algorithms Ii
Analysis Of Algorithms Ii
 
Função afim resumo teórico e exercícios - celso brasil
Função afim   resumo teórico e exercícios - celso brasilFunção afim   resumo teórico e exercícios - celso brasil
Função afim resumo teórico e exercícios - celso brasil
 
Dfa h11
Dfa h11Dfa h11
Dfa h11
 
Unicamp 2015 - aberta
Unicamp 2015 - abertaUnicamp 2015 - aberta
Unicamp 2015 - aberta
 
Add math may june 2016 p1
Add math may june 2016 p1Add math may june 2016 p1
Add math may june 2016 p1
 
SMB_2012_HR_VAN_ST-last version
SMB_2012_HR_VAN_ST-last versionSMB_2012_HR_VAN_ST-last version
SMB_2012_HR_VAN_ST-last version
 
IIT JAM MATH 2021 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2021 Question Paper | Sourav Sir's ClassesIIT JAM MATH 2021 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2021 Question Paper | Sourav Sir's Classes
 
Imc2016 day2-solutions
Imc2016 day2-solutionsImc2016 day2-solutions
Imc2016 day2-solutions
 
4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2
 
SL Formulabooklet
SL FormulabookletSL Formulabooklet
SL Formulabooklet
 

Mehr von Kuddusmia1

Mehr von Kuddusmia1 (8)

Suppose that households in the U.S. increased their desired holdings.pdf
Suppose that households in the U.S. increased their desired holdings.pdfSuppose that households in the U.S. increased their desired holdings.pdf
Suppose that households in the U.S. increased their desired holdings.pdf
 
Suppose that E is compact. Is the set of boundary points of E also c.pdf
Suppose that E is compact. Is the set of boundary points of E also c.pdfSuppose that E is compact. Is the set of boundary points of E also c.pdf
Suppose that E is compact. Is the set of boundary points of E also c.pdf
 
Suppose that an investor is planning to purchase a 9 coupon bond se.pdf
Suppose that an investor is planning to purchase a 9 coupon bond se.pdfSuppose that an investor is planning to purchase a 9 coupon bond se.pdf
Suppose that an investor is planning to purchase a 9 coupon bond se.pdf
 
Suppose that a rural city in ND plans to issue 150,000worth of 10-ye.pdf
Suppose that a rural city in ND plans to issue 150,000worth of 10-ye.pdfSuppose that a rural city in ND plans to issue 150,000worth of 10-ye.pdf
Suppose that a rural city in ND plans to issue 150,000worth of 10-ye.pdf
 
Suppose that a die has been altered so that the faces are 1, 2, 3, 4.pdf
Suppose that a die has been altered so that the faces are 1, 2, 3, 4.pdfSuppose that a die has been altered so that the faces are 1, 2, 3, 4.pdf
Suppose that a die has been altered so that the faces are 1, 2, 3, 4.pdf
 
Suppose that a coin is flipped 7 times What is the probability of .pdf
Suppose that a coin is flipped 7 times What is the probability of .pdfSuppose that a coin is flipped 7 times What is the probability of .pdf
Suppose that a coin is flipped 7 times What is the probability of .pdf
 
Suppose that a companys equity is currently selling for $25 per sh.pdf
Suppose that a companys equity is currently selling for $25 per sh.pdfSuppose that a companys equity is currently selling for $25 per sh.pdf
Suppose that a companys equity is currently selling for $25 per sh.pdf
 
Suppose that A and B are independent events such that P (A) = 0.50 .pdf
Suppose that A and B are independent events such that P (A) = 0.50 .pdfSuppose that A and B are independent events such that P (A) = 0.50 .pdf
Suppose that A and B are independent events such that P (A) = 0.50 .pdf
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

Suppose that ab0, that Euclids algorithm computes gcd(a,b) in n .pdf

  • 1. Suppose that a>b>0, that Euclid's algorithm computes gcd(a,b) in n steps, and that a is the smallest integer with this property (that is, if a'>b'>0 and gcd(a',b') requires n steps, then a'>=a); show that a and b are consecutive Fibonacci numbers a=fn(plus)2 and b=fn(plus)1. Solution Let quotient of a and b is =Q(n) Remainder of a and b is=R(n) n is the step. n-steps sequence for a and b (with quotients q_{n} and remainders r_{n} at nth step) along with the recursive relationships for Fibonacci numbers: By Euclid's algorithm Step (1) a = bQ{1} + R{1}; can be written as: F{n+1} = F{n} + F{n-1}; Step (2) b =R{1}Q{2} + R{2}; F{n} = F{n-1} + F{n-2} Step (3) R{1} =R{2}Q{3}+ R{3}; F{n-1} = F{n-2} + F{n-3} ................................................going to n-1 step. Step (n-1) R{n-3} =R{n-2}Q{n-1} + R{n-1}; F{3} = F{2} + F{1} Step ( n) R{n-2} = R{n-1}Q{n} + 0;
  • 2. F{2} = F{1} + F{0} Since every Q 1 and R{n-1} 1 = F{1} from Step (n), we have R{n-2} = R{n-1}Q{n} F{1}*1 + F{0} = F{2} Going up, Step (n-1) yields R{n-3} =R{n-2}Q{n-1} +R{n-1} F{2}*1 + F{1} = F{3}, similarly backtracking the steps to Step (1), we'll have finally a = bQ{1} + R{1} F{n} + F{n-1} = F{n+1} a>{n+1} Thus, a=F{n+2} similarly,we will get b+F{n+1}