Originally posted by: JustAnAverageGuy
Originally posted by: chuckywang
I cannot believe this thread has over 60 responses. IT'S A FREAKIN' TWO VARIABLE EQUATION!!!!
You have one equation and two variables. You know the two variables must be positive integers, so you don't have an infinite number of answers. Now, from these two pieces of information, you have to determine which set of integers works for the given equation. Hard? Don't think so.
Ok solve this one if you're soooo good at it.
You need to make a pipe of a length of 140 meters.
You are given pipes of lenths 2.8m and 1.3m. Assume is takes no length to put the pipes together.
How many pipes of each type do you need?
Solve.
Originally posted by: DrPizza
p.s. For anyone wishing to solve the above problem by brute force - go for it. Sissies. 100 to 1 you'll fail.
I'm glad somebody got the reference.Originally posted by: jman19
Originally posted by: Howard
We need MadRat to come in here and wax philosophical on the meaning of a pipe.![]()
OMG, please, GOD, do not let MadRat come into another math related thread. He crapped all over the .999 = 1 thread with his "belief" about what infinity is :roll:
Originally posted by: DrPizza
p.s. For anyone wishing to solve the above problem by brute force - go for it. Sissies. 100 to 1 you'll fail.
Originally posted by: chuckywang
Originally posted by: DrPizza
p.s. For anyone wishing to solve the above problem by brute force - go for it. Sissies. 100 to 1 you'll fail.
I think I posted my thoughts on this problem. The professor is hedging his bets. He knows nobody will be able to solve this problem. The computational complexity is simple too high. This is precisely why some cryptography algorithms work.
Originally posted by: vtqanh
Solution:
rewrite the equation as 39x + 59x = 2120. Any pair of x,y that satisfies this equation will satisfy the original one as well.
Find the greatest common divisor of (59,39):
59 = 39 * 1 + 20
39 = 20 * 1 + 19
20 = 19 * 1 + 1
1 = 1 * 1 + 0
-> gcd(59,39) = 1;
Now we need to find a and b such that: 1 = a*39 + b*59
From the next-to-last step above: 1 = 20 - 19 = 20 - (39 - 20) = 2*20 - 39 = 2*(59-39) - 39 =
= -3*39 + 2*59
-> The initial solution x0, y0 for the above equation is x0 = -3*2120 = 6360 y0 = 2 * 2120 = 4240
Now any (x,y) that satisfies: x = x0 + 59*t and y = y0 + 39*t (where t is an integer) will be the solution of the above equation. However, we need x and y to be greater than 0. With that constraint, we have:
-6360 + 59*t > 0 ----> t > 107.8
4240 + 39*t > 0 ----> t < 108.7
Since t is an integer, t must be 108
With t = 108, we have x = 12, y = 28. This is a unique solution since we have a unique value of t
Originally posted by: DrPizza
edit: it's sad to realize that the best of my students would benefit from seeing such elegant solutions to problems such as find a gcd, but they're lumped into the same class as the regular level students and thus are taught "on your calculator, try dividing by 17... now 16... now 15... " - I'm happy if 100% of the students even *know* what a gcd is.
Originally posted by: Brutuskend
Pipe B?
Originally posted by: TheLonelyPhoenix
Originally posted by: Brutuskend
Pipe B?
Damn Brutus, you'll just take any excuse to link to that pic again, won't you?![]()
Originally posted by: vtqanh
Solution:
rewrite the equation as 39x + 59x = 2120. Any pair of x,y that satisfies this equation will satisfy the original one as well.
Find the greatest common divisor of (59,39):
59 = 39 * 1 + 20
39 = 20 * 1 + 19
20 = 19 * 1 + 1
1 = 1 * 1 + 0
-> gcd(59,39) = 1;
Now we need to find a and b such that: 1 = a*39 + b*59
From the next-to-last step above: 1 = 20 - 19 = 20 - (39 - 20) = 2*20 - 39 = 2*(59-39) - 39 =
= -3*39 + 2*59
-> The initial solution x0, y0 for the above equation is x0 = -3*2120 = 6360 y0 = 2 * 2120 = 4240
Now any (x,y) that satisfies: x = x0 + 59*t and y = y0 + 39*t (where t is an integer) will be the solution of the above equation. However, we need x and y to be greater than 0. With that constraint, we have:
-6360 + 59*t > 0 ----> t > 107.8
4240 + 39*t > 0 ----> t < 108.7
Since t is an integer, t must be 108
With t = 108, we have x = 12, y = 28. This is a unique solution since we have a unique value of t
Originally posted by: MercenaryForHire
Originally posted by: ndee
Originally posted by: MercenaryForHire
Originally posted by: Mermaidman
I think we need a second relationship. Are you sure the teacher didn't say that A+B=40?
If we had two equations:
3.9A+5.9B=212
A+B=40
Then it's much easier![]()
No, it's solvable without it.
I've been sitting on a proof without "guess the integer" as well, but I'd like to see if ndee can do his own damned homework first.
- M4H
As I told you, I got the answers, it's not about solving the problem, it's about the way to get there. I don't grasp that. Told ya you couldn't do it... TARD BOY!![]()
Try scrolling up. :roll:
- M4H
Originally posted by: DrPizza
Originally posted by: BigJ
Wheres DrPizza when you need him.
I'm right here. I looked at the problem for a few moments... had a brain fart.
For those of you claiming it's an easy problem, other than brute force, it's a difficult problem.
I believe it falls under Diophantine equations... been wayyy too long for me to recall. But, I do recall it's got something to do with relatively prime...
Good luck on the explanation... I'm just taking a time out from writing a paper, otherwise I'd read enough to recall how to do these. BTW, to those claiming these problems are easy, NDEE, why don't you give them a similar problem to solve...
Incidentally (since I'm not reading through all the idiots calling other people idiots in this thread) I'd like to point out that since they both end in .9, to have an integral length, there needs to be a multiple of 10 total pipes. Thus, for those looking for a 2nd equation, you could have A+B=30, A+B=40, A+B=50, etc.
Hmmm... someone above DID provide a link to 1st order Diophantine equations... I followed the link, it all came back to meWell, some of it.
NDee, follow the link
Reasonably simple explanation.
Originally posted by: ndee
Originally posted by: MercenaryForHire
Originally posted by: ndee
Originally posted by: MercenaryForHire
Originally posted by: Mermaidman
I think we need a second relationship. Are you sure the teacher didn't say that A+B=40?
If we had two equations:
3.9A+5.9B=212
A+B=40
Then it's much easier![]()
No, it's solvable without it.
I've been sitting on a proof without "guess the integer" as well, but I'd like to see if ndee can do his own damned homework first.
- M4H
As I told you, I got the answers, it's not about solving the problem, it's about the way to get there. I don't grasp that. Told ya you couldn't do it... TARD BOY!![]()
Try scrolling up. :roll:
- M4H
Try READING. I didn't want a bruteforce method. And RaynorWolfcastle is right, it's the Diophantine Equation and our teacher gave us information about it but I just don't get it. That's all.
Originally posted by: MercenaryForHire
All you said was that you wanted us to solve it. I solved it, and a lot faster than anyone using a Diophantine equation. Applicable to every single class of equations? No. A hell of a lot faster? Yes. Solved? Totally. As long as there's a method to the madness (calcuations and not just number-crunching) an elegant brute-forcing is a valid proof in every university class I've ever seen.
And it's good to see that you're finally admitting to not just "not getting it" - but still "not getting it" after many explanations have been posted. Now unless you're in front of me at waist-height, how about you shut your mouth? :roll:
- M4H
