Solving Classic Euler Question on Buying Rice and Corn with 1770 Dollars

  • Thread starter Thread starter Mathman23
  • Start date Start date
  • Tags Tags
    Euler
Click For Summary

Homework Help Overview

The discussion revolves around a problem involving a farmer who has 1770 dollars to buy bags of corn and rice, with corn costing 10 dollars per bag and rice costing 20 dollars per bag. The problem is framed as a linear equation: 10x + 20y = 1770, where x and y represent the number of bags of corn and rice, respectively.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the classification of the problem as an "Euler question" and question whether it is more accurately described as a linear Diophantine equation. There is discussion about the appropriate methods for solving the equation, including references to the Euclidean algorithm. Some participants clarify the definitions of variables involved in the equation and simplify the equation to x + 2y = 177, leading to further exploration of integer solutions.

Discussion Status

The discussion includes various interpretations of the problem and attempts to clarify the mathematical concepts involved. Some participants express concern about providing complete solutions, while others share their reasoning and examples related to the problem. There is no explicit consensus on the best approach or solution, but productive dialogue is ongoing.

Contextual Notes

There is a mention of the age of the thread, indicating that it has been open for a significant time without a resolution. Participants also note the importance of not providing complete answers to homework questions, suggesting a focus on guiding understanding rather than solving the problem outright.

Mathman23
Messages
248
Reaction score
0
Hi
I'm told that the the following can be presented as a classic euler question:
A farmer goes to marked with 1770 dollars to buy rice and corn. One bag of corn costs 10 dollars and one of rice cost 20 dollar. How much corn and rice can the farmer buy?
This can be presented in the following way?
10x + 20y = 1770
Then by using extended euler one can calculate x and y ?
Regards
Fred
 
Physics news on Phys.org
In what sense is that an "Euler question"? It looks to me like a linear Diophantine equation. Since you then refer to using the "extended euler" method, I wonder if you don't mean the "Euclidean algorithm" and "Euclidean question"? That's how I would solve this.

Yes, you can write it as 10x+ 20y= 1770- although if I were your teacher I would insist the you first state clearly that "x is the number of bags of corn the farmer buys and y is the number of bags of rice the farmer buys".

Of course, I assume you see immediately that 10x+ 20y= 1770 is the same as x+ 2y= 177. I might point out that 2- 1= 1 so that 1(-177)+ 2(177)= 177.

Certainly, the farmer can't have bought -177 bags of corn! Do you notice that 2n- 177 and 177-n also satisfy 1(2n-177)+ 2(177-n)= 177?
 
Last edited by a moderator:
A farmer goes to marked with 1770 dollars to buy rice and corn. One bag of corn costs 10 dollars and one of rice cost 20 dollar. How much corn and rice can the farmer buy?
This can be presented in the following way?
10x + 20y = 1770
Then by using extended euler one can calculate x and y

Let x be the number of bags of corn which the farmer buys.
Let y be the number of bags of rice which the farmer buys.

Here's a solution to the problem.
10x + 20y = 1770 can be simplified to x+2y=177.

Make y the subject:
2y = 177- x ... (1)
y = (177-x)/2 = (88*2+1-x)/2 = 44 + (1-x)/2
Since y is an integer and 44 is an integer.
Therefore, (1-x)/2 is an integer.

Let (1-x) = 2a where a is any integer.
x = 1 - 2a ... (2)

sub. (1) into (2):
2y = 177 - (1-2a)=176+2a
y= 88+a

General integer solutions are:
x = 1-2a ... (3)
y = 88+a ... (4)

For positive integer solutions:
Let x=1-2a > 0
1>2a
a<(1/2)

Let y=88+a>0
a>-88

Therefore -88>a<(1/2)
Possible values of a include: -87, -86 ... -1, 0
There are 88 different values of a.
----------------------------------------------------------------
sub. a=-1 into 3:
x= 1-2(-1)=1+2 = 3

sub a=-1 into 4:
y=88+(-1) = 87

Therefore, possible solution of the problem:
x=3, y=87

The farmer could have bought 3 bags of corn and 87 bags of rice.
 
I started to complain that you shouldn't give complete answers to homework questions- then I noticed that this thread is 3 years old!
 
I noticed that too.
I saw that there hadn't been a solution to the problem and thought that it would be best to give an example of Euler's extended method, in case anyone else was interested.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
4
Views
4K
  • · Replies 27 ·
Replies
27
Views
11K
Replies
29
Views
6K
Replies
13
Views
6K
  • · Replies 67 ·
3
Replies
67
Views
17K
Replies
42
Views
9K