Problem 087

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
Phibonacci
Posts: 10
Joined: Fri Nov 28, 2008 4:04 am
Location: Des Moines, IA
Contact:

Problem 087

Post by Phibonacci »

my method is have three place values x, y, z. x^2 + y^3 + z^4.
I increment z by primes until max then increment y and start over with the z's. Etc....
Similar to counting 001, 002, ... , 009, 010, 011, ...
I can not figure out why this is producing errors. I keep getting 1139575??
Phibonacci - A juxtaposition of Phi (The Golden Ratio) and Fibonacci (Leonardo of Pisa)
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Problem 087

Post by Tommy137 »

I pm'ed you.
Image
giorgiolx
Posts: 1
Joined: Wed Apr 01, 2009 4:11 pm

Re: Problem 087

Post by giorgiolx »

hi,
can you send me the same mp?
;)
MaJJ
Posts: 49
Joined: Tue Oct 14, 2008 12:14 am

Re: Problem 087

Post by MaJJ »

I'm getting the same number (1139575), although I have different method. Any help?
Image
Image
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: Problem 087

Post by stijn263 »

Are you sure there are 1139575 different numbers below fifty million with the property stated in Problem 87 (View Problem)?
MaJJ
Posts: 49
Joined: Tue Oct 14, 2008 12:14 am

Re: Problem 087

Post by MaJJ »

Hmm, are you suggesting different primes could lead to the same sums? Maybe that's the problem :)
Image
Image
Alex-82w4
Posts: 20
Joined: Fri Jan 13, 2017 4:37 pm

Re: Problem 087

Post by Alex-82w4 »

Phibonacci wrote: Sun Jan 18, 2009 1:57 am my method is have three place values x, y, z. x^2 + y^3 + z^4.
I increment z by primes until max then increment y and start over with the z's. Etc....
Similar to counting 001, 002, ... , 009, 010, 011, ...
I can not figure out why this is producing errors. I keep getting 1139575??
I get the same result. How do I verify that this result is correct?
Image
The friend key is 1004797_CkgowZqfFi0qQMGOqVjB0RP8htEhkWW2
v6ph1
Posts: 134
Joined: Mon Aug 25, 2014 7:14 pm

Re: Problem 087

Post by v6ph1 »

One simple example: 5^4 + 2^3 + 2^2 = 3^4 + 3^3 + 23^2
Image
Alex-82w4
Posts: 20
Joined: Fri Jan 13, 2017 4:37 pm

Re: Problem 087

Post by Alex-82w4 »

Thank you very much !
Image
The friend key is 1004797_CkgowZqfFi0qQMGOqVjB0RP8htEhkWW2
laogui
Posts: 7
Joined: Tue Jun 06, 2023 3:05 pm

Re: Problem 087

Post by laogui »

No problem with the correct answer, but execution time was an issue - 7071 squares x 368 cubes x 84 fourth power - 218 million iterations took a long long time in python. Moreover I couldn't work out why the execution time increased as it progressed; must be the overhead of the growing list object. Increased for each of the fourth powers from 13 seconds 1st, up to 360, then dropped in the last 4 iterations
User avatar
RobertStanforth
Administrator
Posts: 2666
Joined: Mon Dec 30, 2013 11:25 pm

Re: Problem 087

Post by RobertStanforth »

laogui wrote: Sat Jul 15, 2023 1:10 pm No problem with the correct answer, but execution time was an issue [...]
Welcome to Project Euler!
Note that this forum is only for clarifications of the problem statements. Discussion of methods and their runtimes should take place in the problem solution threads on the main site, e.g. https://projecteuler.net/thread=87 for this problem. Could you please move your post there. Thanks!
Post Reply