SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Unit 4: Diophantine equations
and congruences
3 Named Puzzles
1.Mahavira’s puzzle
2.Hundred fowls puzzle
3.Monkey and coconuts puzzle
• Linear Diophantine Equations were known in ancient China and India
as applications to astronomy and riddles, so we begin our discussion
with two interesting puzzles.
• The first puzzle is due to the Indian mathematician Mahavira (ca. A.D.
850).
• Mahavira, an astronomer and mathematician at the court of King
Amoghavardana Vripatunga (814–877), was born in Mysore, India.
• Only little is known about his life. A staunch Jain by religion, he is known for
his Ganita-Sara- Sangraha, the most scholarly treatise of the time on Indian
mathematics.
• Written in nine chapters, it summarizes the body of knowledge then known
in India, in arithmetic, including zero, fractions, and the decimal system,
and geometry. It was translated from Sanskrit into English in 1912.
• 23 weary travelers entered the outskirts of a lush and beautiful forest.
• They found 63 equal heaps of plantains and seven single fruits, and
divided them equally.
• Find the number of fruits in each heap.
• Let x denote the number of plantains in a heap and y the number of
plantains received by a traveler.
• Then the total number of plantains = 63x+7
• Each traveler received y plantain
• Therefore, the total number of plantains received by the travellers =23y
• Then we get the LDE
63x + 7 = 23y
63x - 23y = -7 ----------------- eqn 1
1. Using congruences, solve Mahavira’s puzzle
We have 63x−23y=−7.
This LDE creates two linear congruences:
63x≡−7 (mod 23) −23y≡−7 (mod 63)
We solve 63x≡−7 (mod 23)
Since 63≡−6 (mod 23)
we get -6x≡−7 (mod 23) => 6x≡7 (mod 23)
Here a=6 b=7 m=23
Gcd of (a,m )where (6, 23) = 1. => d =1
We find x0 =5 is a particular solution since 30≡7 (mod 23)
The general solution is x=x0+(m/d)t =>5+23t where t belongs to Z
1. So the general solution of the congruence 63x≡−7 (mod 23) is x =
5+23t.
2. Substitute for x in the LDE and solve for y:
3. 63(5+ 23t)−23y=−7
4. 315+ 1449t −23y=−7
5. y = 14+63t
6. Thus, the general solution of the LDE is x = 5+23t, y = 14+63t, with t
an arbitrary integer.
• Another ancient riddle, called the hundred fowls puzzle, is found in
the Mathematical Classic, a book by the sixth-century Chinese
mathematician Chang Chiuchien.
If a cock is worth five coins, a hen three coins, and
three chicks together one coin, how many cocks, hens,
and chicks, totaling 100, can be bought for 100 coins?
Let x, y, and z denote the number of cocks, the number of
hens, and the number of chicks respectively.
Clearly, x, y, z ≥ 0. Then the given data yield two LDEs:
y= 100 – 7x = 25-7/4x
4
y be an integer => -7/4x must be an integer but 4 / 7
So x=4t where t is an arbitrary integer
Then y=25-7t and z=75+3t
Hence every solution to the puzzle is of the form x=4t,
y=25-7t, z=75+3t where t is an arbitrary integer.
Now to find the actual possible solutions
Since x>0, t>0 and y>0, 25-7t > 0 ie., t < 25/7 so t<3
Since z>0.75+3t >0 so t > -25 so this gives us an additional
information
So 0<t<3
|
Hence the riddle has four possible solutions
If t=0 x=0 y=25 z=75
If t=1 x=4 y=18 z=78
If t=2 x=8 y=11 z=81
If t=3 x=12 y=4 z=84
• The October 9, 1926, issue of The Saturday Evening Post carried a
fascinating puzzle by Ben AmesWilliams, titled Coconuts. It concerned
a building contractor desperate to prevent a tough competitor from
getting a lucrative contract. A shrewd employee of the contractor,
knowing their competitor’s love for recreational mathematics, gave
him a problem so intriguing that he became obsessed with solving it
and forgot to enter his bid before the deadline.
• Five sailors and a monkey are marooned on a desert island.
• During the day they gather coconuts for food.
• They decide to divide them up in the morning, but first they retire for the
night.
• While the others sleep, one sailor gets up and divides them into five equal
piles, with one left over, which he throws out for the monkey.
• He hides his share, puts the remaining coconuts together, and goes back to
sleep.
• Later a second sailor gets up, divides the pile into five equal shares with
one coconut left over, which he discards for the monkey.
• One by one the remaining sailors repeat the process. In the morning, they
divide the pile equally among them with one coconut left over, which they
throw out for the monkey.
• Find the smallest possible number of coconuts in the original pile.
1. Let ‘n’ be the number of coconuts
2. After 1st person remaining coconuts is , 4/5(n-1)
3. After 2nd person remaining coconuts is , 4/5(4/5(n-1)-1)
4. After 3rd person remaining coconuts is, 4/5( 4/5(4/5(n-1)-1)-1)
5. After 4th person remaining coconuts is, 4/5(4/5( 4/5(4/5(n-1)-1)-1)-1)
6. After 5th person remaining coconuts is, 4/5(4/5(4/5( 4/5(4/5(n-1)-1)-1)-1)-1)
• The remaining coconuts is divided into 5
Since 45, 56 are relatively prime.
e.,(45, 56) = 1, so n+4 ≡ 0 (mod 56).
Thus, for n to be a minimum, n+4 = 56 (56 =15625)
so n = 15,621

Weitere ähnliche Inhalte

Was ist angesagt?

Linear cong slide 2
Linear cong slide 2Linear cong slide 2
Linear cong slide 2
Vi Aspe
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equations
swartzje
 
Approaches in teaching and learning mathematics
Approaches in teaching and learning mathematicsApproaches in teaching and learning mathematics
Approaches in teaching and learning mathematics
tangyokechoo
 
Quadratic Equation and discriminant
Quadratic Equation and discriminantQuadratic Equation and discriminant
Quadratic Equation and discriminant
swartzje
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
ankush_kumar
 

Was ist angesagt? (20)

Prime numbers
Prime numbersPrime numbers
Prime numbers
 
Factoring general trinomials
Factoring general trinomialsFactoring general trinomials
Factoring general trinomials
 
Linear cong slide 2
Linear cong slide 2Linear cong slide 2
Linear cong slide 2
 
Factor Theorem and Remainder Theorem
Factor Theorem and Remainder TheoremFactor Theorem and Remainder Theorem
Factor Theorem and Remainder Theorem
 
Volume of solid revolution
Volume of solid revolutionVolume of solid revolution
Volume of solid revolution
 
Solving absolute values
Solving absolute valuesSolving absolute values
Solving absolute values
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equations
 
Rational exponents and radicals
Rational exponents and radicals Rational exponents and radicals
Rational exponents and radicals
 
Chapter 4 Cyclic Groups
Chapter 4 Cyclic GroupsChapter 4 Cyclic Groups
Chapter 4 Cyclic Groups
 
Approaches in teaching and learning mathematics
Approaches in teaching and learning mathematicsApproaches in teaching and learning mathematics
Approaches in teaching and learning mathematics
 
Strategies in Teaching Mathematics -Principles of Teaching 2 (KMB)
Strategies in Teaching Mathematics -Principles of Teaching 2 (KMB)Strategies in Teaching Mathematics -Principles of Teaching 2 (KMB)
Strategies in Teaching Mathematics -Principles of Teaching 2 (KMB)
 
Lesson 1: Special Products
Lesson 1: Special ProductsLesson 1: Special Products
Lesson 1: Special Products
 
Division of Radicals.pptx
Division of Radicals.pptxDivision of Radicals.pptx
Division of Radicals.pptx
 
Linear Combination, Span And Linearly Independent, Dependent Set
Linear Combination, Span And Linearly Independent, Dependent SetLinear Combination, Span And Linearly Independent, Dependent Set
Linear Combination, Span And Linearly Independent, Dependent Set
 
Quadratic Equation and discriminant
Quadratic Equation and discriminantQuadratic Equation and discriminant
Quadratic Equation and discriminant
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
 
REAL ANALYSIS -UNIT I Basic Concepts.pptx
REAL ANALYSIS -UNIT I Basic Concepts.pptxREAL ANALYSIS -UNIT I Basic Concepts.pptx
REAL ANALYSIS -UNIT I Basic Concepts.pptx
 
3.2 Power sets
3.2 Power sets3.2 Power sets
3.2 Power sets
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Problem solving in mathematics
Problem solving in mathematicsProblem solving in mathematics
Problem solving in mathematics
 

Ähnlich wie diophantine equation and congruence puzzles

Prakash3
Prakash3Prakash3
Prakash3
rraj801
 
[Maths] arithmetic
[Maths] arithmetic[Maths] arithmetic
[Maths] arithmetic
Ourutopy
 
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptxAlgebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
BivekRegmi1
 
September 16, 2014
September 16, 2014September 16, 2014
September 16, 2014
khyps13
 

Ähnlich wie diophantine equation and congruence puzzles (20)

Prakash3
Prakash3Prakash3
Prakash3
 
[Maths] arithmetic
[Maths] arithmetic[Maths] arithmetic
[Maths] arithmetic
 
Combinations and permutations(1)
Combinations and permutations(1)Combinations and permutations(1)
Combinations and permutations(1)
 
Proect
ProectProect
Proect
 
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptxAlgebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
 
Algebreviewer
AlgebreviewerAlgebreviewer
Algebreviewer
 
Algebreviewer
AlgebreviewerAlgebreviewer
Algebreviewer
 
Vegam booklet converted word file
Vegam booklet   converted word fileVegam booklet   converted word file
Vegam booklet converted word file
 
September 16, 2014
September 16, 2014September 16, 2014
September 16, 2014
 
Mathematics
MathematicsMathematics
Mathematics
 
CBSE Sample Paper Mathematics Class XII - 2015
CBSE Sample Paper  Mathematics Class XII  - 2015CBSE Sample Paper  Mathematics Class XII  - 2015
CBSE Sample Paper Mathematics Class XII - 2015
 
Bhaskara ii
Bhaskara iiBhaskara ii
Bhaskara ii
 
Maths project
Maths projectMaths project
Maths project
 
class 10 chapter 1- real numbers
class 10 chapter 1- real numbersclass 10 chapter 1- real numbers
class 10 chapter 1- real numbers
 
Maths project
Maths projectMaths project
Maths project
 
Maths project
Maths projectMaths project
Maths project
 
Grade 7-Sample Questions-1.pptx
Grade 7-Sample Questions-1.pptxGrade 7-Sample Questions-1.pptx
Grade 7-Sample Questions-1.pptx
 
Real numbers ppt by jk
Real numbers ppt by jkReal numbers ppt by jk
Real numbers ppt by jk
 
Advanced s
Advanced sAdvanced s
Advanced s
 
Digital textbook
Digital textbookDigital textbook
Digital textbook
 

Mehr von anonymous

Mehr von anonymous (8)

Mobile Application Development.pptx
Mobile Application Development.pptxMobile Application Development.pptx
Mobile Application Development.pptx
 
Application layer
Application layer Application layer
Application layer
 
Hydrocarbons.pptx
 Hydrocarbons.pptx Hydrocarbons.pptx
Hydrocarbons.pptx
 
aldehydes , ketones & carboxylic acids.pptx
aldehydes , ketones & carboxylic acids.pptxaldehydes , ketones & carboxylic acids.pptx
aldehydes , ketones & carboxylic acids.pptx
 
STEPPER MOTOR .pptx
STEPPER MOTOR .pptxSTEPPER MOTOR .pptx
STEPPER MOTOR .pptx
 
22.chemical control & coordination in one shot.pptx
22.chemical control & coordination in one shot.pptx22.chemical control & coordination in one shot.pptx
22.chemical control & coordination in one shot.pptx
 
Mineral nutrition.pptx
Mineral nutrition.pptxMineral nutrition.pptx
Mineral nutrition.pptx
 
Photosynthesis in plants.pptx
Photosynthesis in plants.pptxPhotosynthesis in plants.pptx
Photosynthesis in plants.pptx
 

Kürzlich hochgeladen

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Kürzlich hochgeladen (20)

Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 

diophantine equation and congruence puzzles

  • 1. Unit 4: Diophantine equations and congruences 3 Named Puzzles 1.Mahavira’s puzzle 2.Hundred fowls puzzle 3.Monkey and coconuts puzzle
  • 2. • Linear Diophantine Equations were known in ancient China and India as applications to astronomy and riddles, so we begin our discussion with two interesting puzzles.
  • 3. • The first puzzle is due to the Indian mathematician Mahavira (ca. A.D. 850).
  • 4. • Mahavira, an astronomer and mathematician at the court of King Amoghavardana Vripatunga (814–877), was born in Mysore, India. • Only little is known about his life. A staunch Jain by religion, he is known for his Ganita-Sara- Sangraha, the most scholarly treatise of the time on Indian mathematics. • Written in nine chapters, it summarizes the body of knowledge then known in India, in arithmetic, including zero, fractions, and the decimal system, and geometry. It was translated from Sanskrit into English in 1912.
  • 5.
  • 6. • 23 weary travelers entered the outskirts of a lush and beautiful forest. • They found 63 equal heaps of plantains and seven single fruits, and divided them equally. • Find the number of fruits in each heap.
  • 7. • Let x denote the number of plantains in a heap and y the number of plantains received by a traveler. • Then the total number of plantains = 63x+7 • Each traveler received y plantain • Therefore, the total number of plantains received by the travellers =23y • Then we get the LDE 63x + 7 = 23y 63x - 23y = -7 ----------------- eqn 1
  • 8. 1. Using congruences, solve Mahavira’s puzzle We have 63x−23y=−7. This LDE creates two linear congruences: 63x≡−7 (mod 23) −23y≡−7 (mod 63) We solve 63x≡−7 (mod 23) Since 63≡−6 (mod 23) we get -6x≡−7 (mod 23) => 6x≡7 (mod 23) Here a=6 b=7 m=23 Gcd of (a,m )where (6, 23) = 1. => d =1 We find x0 =5 is a particular solution since 30≡7 (mod 23) The general solution is x=x0+(m/d)t =>5+23t where t belongs to Z
  • 9. 1. So the general solution of the congruence 63x≡−7 (mod 23) is x = 5+23t. 2. Substitute for x in the LDE and solve for y: 3. 63(5+ 23t)−23y=−7 4. 315+ 1449t −23y=−7 5. y = 14+63t 6. Thus, the general solution of the LDE is x = 5+23t, y = 14+63t, with t an arbitrary integer.
  • 10.
  • 11.
  • 12. • Another ancient riddle, called the hundred fowls puzzle, is found in the Mathematical Classic, a book by the sixth-century Chinese mathematician Chang Chiuchien.
  • 13. If a cock is worth five coins, a hen three coins, and three chicks together one coin, how many cocks, hens, and chicks, totaling 100, can be bought for 100 coins?
  • 14. Let x, y, and z denote the number of cocks, the number of hens, and the number of chicks respectively. Clearly, x, y, z ≥ 0. Then the given data yield two LDEs:
  • 15. y= 100 – 7x = 25-7/4x 4 y be an integer => -7/4x must be an integer but 4 / 7 So x=4t where t is an arbitrary integer Then y=25-7t and z=75+3t Hence every solution to the puzzle is of the form x=4t, y=25-7t, z=75+3t where t is an arbitrary integer. Now to find the actual possible solutions Since x>0, t>0 and y>0, 25-7t > 0 ie., t < 25/7 so t<3 Since z>0.75+3t >0 so t > -25 so this gives us an additional information So 0<t<3 |
  • 16. Hence the riddle has four possible solutions If t=0 x=0 y=25 z=75 If t=1 x=4 y=18 z=78 If t=2 x=8 y=11 z=81 If t=3 x=12 y=4 z=84
  • 17. • The October 9, 1926, issue of The Saturday Evening Post carried a fascinating puzzle by Ben AmesWilliams, titled Coconuts. It concerned a building contractor desperate to prevent a tough competitor from getting a lucrative contract. A shrewd employee of the contractor, knowing their competitor’s love for recreational mathematics, gave him a problem so intriguing that he became obsessed with solving it and forgot to enter his bid before the deadline.
  • 18.
  • 19. • Five sailors and a monkey are marooned on a desert island. • During the day they gather coconuts for food. • They decide to divide them up in the morning, but first they retire for the night. • While the others sleep, one sailor gets up and divides them into five equal piles, with one left over, which he throws out for the monkey. • He hides his share, puts the remaining coconuts together, and goes back to sleep. • Later a second sailor gets up, divides the pile into five equal shares with one coconut left over, which he discards for the monkey. • One by one the remaining sailors repeat the process. In the morning, they divide the pile equally among them with one coconut left over, which they throw out for the monkey. • Find the smallest possible number of coconuts in the original pile.
  • 20. 1. Let ‘n’ be the number of coconuts 2. After 1st person remaining coconuts is , 4/5(n-1) 3. After 2nd person remaining coconuts is , 4/5(4/5(n-1)-1) 4. After 3rd person remaining coconuts is, 4/5( 4/5(4/5(n-1)-1)-1) 5. After 4th person remaining coconuts is, 4/5(4/5( 4/5(4/5(n-1)-1)-1)-1) 6. After 5th person remaining coconuts is, 4/5(4/5(4/5( 4/5(4/5(n-1)-1)-1)-1)-1)
  • 21. • The remaining coconuts is divided into 5
  • 22.
  • 23. Since 45, 56 are relatively prime. e.,(45, 56) = 1, so n+4 ≡ 0 (mod 56). Thus, for n to be a minimum, n+4 = 56 (56 =15625) so n = 15,621