Problem 142

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
sker
Posts: 5
Joined: Tue Sep 30, 2008 9:05 am

Problem 142

Post by sker »

What am I supposed to submit in this problem? x + y + z? Because I think I have the right answer, as confirmed by two other sources, but the problem won't accept it.

Could someone please verify if my answer is right or wrong?

(Link to problem added by moderator: Problem 142 (View Problem))
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Problem 142

Post by daniel.is.fischer »

Yes, you should submit the sum.
You can PM me your answer and I'll check if it's correct.
You might also try resubmitting it, in case copy-pasting the answer added a space or lost a digit.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
MaJJ
Posts: 49
Joined: Tue Oct 14, 2008 12:14 am

Re: Problem 142

Post by MaJJ »

What's wrong with (993250,949986,856350) = 2799586? My guess is that it's not the smallest solution, is it?
Image
Image
genious999
Posts: 53
Joined: Mon Oct 20, 2008 10:48 pm

Re: Problem 142

Post by genious999 »

Nope, it's not.
JMW1994
Posts: 43
Joined: Sat Apr 09, 2011 11:35 pm

Re: Problem 142

Post by JMW1994 »

In this problem, is a perfect square considered one that gives an integer when you square root x+y,x-y,y+z,y-z,x+z, and x-z?
Image
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 142

Post by rayfil »

JMW1994 wrote:In this problem, is a perfect square considered one that gives an integer when you square root x+y,x-y,y+z,y-z,x+z, and x-z?
Correct
When you assume something, you risk being wrong half the time.
Loers
Posts: 10
Joined: Sun Aug 19, 2012 3:03 am

Re: Problem 142

Post by Loers »

How can I find integer solutions for this equation
a^2 + b^2 + c^2 - d^2 = 2e
Image
is there some sort a tutorial or a specific part of math that handles this ?
thundre
Posts: 356
Joined: Sun Mar 27, 2011 10:01 am

Re: Problem 142

Post by thundre »

Loers wrote:How can I find integer solutions for this equation
a2 + b2 + c2 - d2 = 2e
is there some sort a tutorial or a specific part of math that handles this ?
That is called a "Diophantine equation".

BTW I edited your text to use the "sup" tag for superscripts. It's probably easier than generating an image.
Image
User avatar
Slaunger
Posts: 40
Joined: Tue Jul 20, 2010 12:23 am

Re: Problem 142

Post by Slaunger »

I have a solution to this problem with x + y + z = 1639329, which obey the conditions, but apparently not with the lowest possible sum. Obviously, I have missed some possibilities in my solution space :(

1. Can someone confirm that the sum 1639329 is in the spectrum of solutions, which comply with the conditions (just not the lowest sum) to check my understanding of the problem? :)

2. I can rapidly find plenty of other solutions with larger sums, the first four being
6557316
6645958
14610433
14753961
...
Could someone hint to me, what I kind of possibilities I appear to be missing in my spectrum of solutions? Perhaps pm me?

I have been stuck on this problem for almost two years now, and it is driving me nutz. :shock: But I am very stubborn, and will not begin on a new problem until I have found a solution to this one...

Thanks
Image
User avatar
TheEvil
Posts: 84
Joined: Sun Nov 13, 2011 10:38 am
Location: Szeged, Hungary

Re: Problem 142

Post by TheEvil »

The correct answer is lower than yours. It has the same number of digits as yours.
By the way: you can check any of your answers easily with a calculator, the hard part is to find the smallest one.
Image
User avatar
Slaunger
Posts: 40
Joined: Tue Jul 20, 2010 12:23 am

Re: Problem 142

Post by Slaunger »

TheEvil wrote:The correct answer is lower than yours. It has the same number of digits as yours.
By the way: you can check any of your answers easily with a calculator, the hard part is to find the smallest one.
Köszönjük! :D I got encouraged by this, and recheked my assumptions. It turned out I had been too sloppy in assuming something about the ordering of the perfect squares, which was not entirely correct. Reran taking that into account and got the answer. Hurray. I am back in business on PE after almost two years! :D Muahahahaaa.
Image
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 142

Post by Oliver1978 »

Do you consider 1 a square? Actually, I don't, although 1 * 1 = 1.
49.157.5694.1125
User avatar
dawghaus4
Posts: 56
Joined: Fri Nov 29, 2013 2:22 am

Re: Problem 142

Post by dawghaus4 »

leghorn wrote:Do you consider 1 a square? Actually, I don't, although 1 * 1 = 1.
Yes, 1 is a square number

Definition: A square number is an integer that is the square of an integer; that is, a number is square if it is the product of some integer with itself.

Since 1 = 1 * 1 and 1 is an integer, it satisfies the definition.

Also, if you wish, you can look at problem 61 where the first 5 squares are listed: 1, 4, 9, 16. 25...

One can go further and say that 1 is a prefect nth power for all integers n ≥ 1.

The same can be said about 0. (Of course, in this problem, 0 is excluded because x > y > z > 0.)

Tom
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 142

Post by Oliver1978 »

Alrighty! Thanks for lighening this up.
49.157.5694.1125
User avatar
RishadanPort
Posts: 79
Joined: Mon Jun 10, 2013 7:31 am

Re: Problem 142

Post by RishadanPort »

Can x/y/z be negative? Question doesn't say they need to be positive
Image

Rishada is the gateway to free trade—but the key will cost you.
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Problem 142

Post by mdean »

RishadanPort wrote: Mon Jul 29, 2019 1:05 am Can x/y/z be negative? Question doesn't say they need to be positive
The question mentions x > y > z > 0.
Image
User avatar
RishadanPort
Posts: 79
Joined: Mon Jun 10, 2013 7:31 am

Re: Problem 142

Post by RishadanPort »

Ah oops missed that part. Thanks
Image

Rishada is the gateway to free trade—but the key will cost you.
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Problem 142

Post by mdean »

Hmm... My program appears to be calculating things correctly, but I seem to be missing a lot of solutions based on what's here. All the solutions I've found so far are with x, y, and z all even. I'm not sure how to troubleshoot it at this point except find a solution my program didn't find, then figure out why it didn't find it.

I could use some help from someone else on that. The only other recourse is to try to reverse engineer one of the values of x+y+z posted here and attempt to figure out x, y, and z.

Update: Nevermind. I'm an idiot. It took way too long to notice what was wrong.
Image
Post Reply