SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
ZunAib Ali
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
Viraj Patel
 

La actualidad más candente (20)

Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Section 10: Lagrange's Theorem
Section 10: Lagrange's TheoremSection 10: Lagrange's Theorem
Section 10: Lagrange's Theorem
 
Application of linear transformation in computer
Application of linear transformation in computerApplication of linear transformation in computer
Application of linear transformation in computer
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Topology
TopologyTopology
Topology
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
Differential equations of first order
Differential equations of first orderDifferential equations of first order
Differential equations of first order
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Optimization Simulated Annealing
Optimization Simulated AnnealingOptimization Simulated Annealing
Optimization Simulated Annealing
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Partial differential equation &amp; its application.
Partial differential equation &amp; its application.Partial differential equation &amp; its application.
Partial differential equation &amp; its application.
 
Eucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomialsEucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomials
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Group abstract algebra
Group  abstract algebraGroup  abstract algebra
Group abstract algebra
 
Differential equation and its order and degree
Differential equation and its order and degreeDifferential equation and its order and degree
Differential equation and its order and degree
 

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

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

Más de anonymous

Más de 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
 

Último

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Último (20)

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...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
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
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
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
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

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