SlideShare a Scribd company logo
1 of 2
Download to read offline
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}

More Related Content

Similar to 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
 

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

AJMS_389_22.pdf
AJMS_389_22.pdfAJMS_389_22.pdf
AJMS_389_22.pdf
 
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
 
Maieee03
Maieee03Maieee03
Maieee03
 
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
 
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
 

More from Kuddusmia1

More from 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
 

Recently uploaded

Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
SaadHumayun7
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 

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}