Solve Diophantine Eq.: 14 Bananas & Pears, £1.52

  • Thread starter Thread starter Mathematicsresear
  • Start date Start date
Mathematicsresear
Messages
66
Reaction score
0

Homework Statement


14 bananas and pears were bought in total by John from the supermarket.
The total cost was £1.52
if Banannas that John purchased cost 5p more than pears, how much did John buy from each fruit?

Homework Equations

The Attempt at a Solution


number of bananas bought = m
cost of bananas bought = n
number of pears bought = 14-m
cost of pears bought = n -5

I am unsure as to what follows
 
Last edited by a moderator:
Physics news on Phys.org
Mathematicsresear said:
I am unsure as to what follows
Time to write the equation with those variables you've defined and relate that to the total cost...
 
berkeman said:
Time to write the equation with those variables you've defined and relate that to the total cost...
mn+(14-m)(n-5)=14n+5m = 1.52, so does that mean there are no solutions? This does not make sense.
 
Mathematicsresear said:

Homework Statement


14 bananas and pears were bought in total by John from the supermarket.
The total cost was £1.52
if Banannas that John purchased cost 5p more than pears, how much did John buy from each fruit?

Homework Equations

The Attempt at a Solution


number of bananas bought = m
cost of bananas bought = n
number of pears bought = 14-m
cost of pears bought = n -5

I am unsure as to what follows

Please clarify for those of us who are not very familiar with English money: is there nowadays 100 p per pound?
 
Ray Vickson said:
Please clarify for those of us who are not very familiar with English money: is there nowadays 100 p per pound?
Yes
 
Ray Vickson said:
100 p per pound
Mathematicsresear said:
mn+(14-m)(n-5)=14n+5m = 1.52
Then 1.52 is not quite correct, right? :smile:
 
Mathematicsresear said:
mn+(14-m)(n-5)=14n+5m
And I'm not understanding this step...
 
berkeman said:
Then 1.52 is not quite correct, right? :smile:
So, should 1.52 be 152? If so, does that mean I need to multiply all sides by 100?
 
Mathematicsresear said:
So, should 1.52 be 152? If so, does that mean I need to multiply all sides by 100?
Just use consistent units on both sides of all equations. Either use pounds or pence on both sides.
 
  • #10
berkeman said:
Then 1.52 is not quite correct, right? :smile:

(1) ##m n + (14-m) (n-5) \neq 14 n + 5 m.##
(2) Since you want prices to be in integer numbers of pence, it is convenient to use pence as the monetary unit throughout; otherwise (with the pound as the monetary unit) you would need to find prices that are precise to exactly two decimal places.
(3) When I do it I get three possible solutions to the resulting equation, but two of those are not valid solutions to the original problem
 
Last edited:
Back
Top