Problem 289

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.
cyclops
Posts: 15
Joined: Mon Apr 05, 2010 12:30 am

Problem 289

Post by cyclops »

Problem 289 (View Problem)

Hi,

I'm trying to rule out stupid bugs versus flawed algorithm. I suspect maybe my algorithm is based on a flawed premise because basically there are two sub-algorithms that verify each other's results in some cases (and I haven't found a case where they contradict each other). I get a high value L(3,3)=106882. I'll probably write a brute forcer for small numbers to try to find discrepancies, but in the meantime,

Could someone verify or deny L(11,2)=5539780352 (mod 10^10)?

Could help speed up the debugging process.

Thanks.
Last edited by cyclops on Sat Apr 24, 2010 6:57 pm, edited 1 time in total.
harryh
Posts: 2091
Joined: Tue Aug 22, 2006 9:33 pm
Location: Thessaloniki, Greece

Re: Problem 289

Post by harryh »

Yep, L(11,2)=5539780352 (mod 10^10) looks correct :D
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 289

Post by quilan »

This problem is the slowest people-solved grower that I can remember in a LONG time. 2 days later, 9 people solved.
ex ~100%'er... until the gf came along.
Image
cyclops
Posts: 15
Joined: Mon Apr 05, 2010 12:30 am

Re: Problem 289

Post by cyclops »

Thanks, harryh, that did help me narrow the search quite a bit and find my error. After some revisions, the program now gives L(3,3) = 104290 as expected. Unfortunately I'm finding my code to be a debugging nightmare (I know the algorithm isn't optimal, but I'm trying to milk it as much as possible before trying to find a new one), and although it feels a bit like cheating to ask, I'm wondering if

L(3,30) = 1420222126 (mod 10^10)
L(4,25) = 795488992 (mod 10^10)

are correct.

Regarding quilan's comment: Since I'm a relative newcomer here, I'm curious as to how the number of solvers over time for this problem compares with Pivotal Square Sums (261), and also Coresilience (245), for those who remember.

I must be masochistic because I'm really enjoying the difficulty of this problem.
harryh
Posts: 2091
Joined: Tue Aug 22, 2006 9:33 pm
Location: Thessaloniki, Greece

Re: Problem 289

Post by harryh »

Number of solvers after 24h, 48h, 72h, 96h, 120h for a few relatively recent problems with a small number of solutions :

#257 : 9, 17, 20, 25, 27
#261 : 8, 17, 25, 30, 35
#264 :10, 17, 21, 25, 37

From problem number #277 onwards, the fastest-20 list provides a pretty good indication... :)
TripleM
Posts: 384
Joined: Fri Sep 12, 2008 3:31 am

Re: Problem 289

Post by TripleM »

cyclops wrote:.. and although it feels a bit like cheating to ask, I'm wondering if

L(3,30) = 1420222126 (mod 10^10)
L(4,25) = 795488992 (mod 10^10)

are correct.
Since it appears this may be turning out to be one of the most difficult Euler problems yet (if not the hardest), I think it would be a good idea for once to not give away any test case confirmations at all. With so many people up at the top of the leaderboard these days a problem like this is great; the less hints the better.

(And I haven't solved it yet.)
cyclops
Posts: 15
Joined: Mon Apr 05, 2010 12:30 am

Re: Problem 289

Post by cyclops »

TripleM wrote: Since it appears this may be turning out to be one of the most difficult Euler problems yet (if not the hardest), I think it would be a good idea for once to not give away any test case confirmations at all. With so many people up at the top of the leaderboard these days a problem like this is great; the less hints the better.

(And I haven't solved it yet.)
You've persuaded me. :D I think I'll be happier if I don't get confirmation, to make the problem harder. But I'll leave what I wrote up unless a moderator thinks it should be taken down.
niino
Posts: 873
Joined: Sun May 24, 2009 3:22 am
Location: Japan

Re: Problem 289

Post by niino »

For reference, I remember there had been no solvers in the first 4 hours at "Perfection Quotients", Problem 241 (View Problem).
Image
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: Problem 289

Post by stijn263 »

SirJective said: (Problem 177 (View Problem))
I was quite surprised that this problem is being solved so slowly, with my solution being the 17th, after four days. :-)
If I recall it correctly, I had the 25th solution three days later..

TripleM wrote:Since it appears this may be turning out to be one of the most difficult Euler problems yet (if not the hardest), I think it would be a good idea for once to not give away any test case confirmations at all. With so many people up at the top of the leaderboard these days a problem like this is great; the less hints the better.

(And I haven't solved it yet.)
I agree. For these problems the development team discusses what test cases to give (usually a small case to help understanding the problem and a bigger one for the debugging) and in my opinion that should be enough :-)
juris.c
Posts: 23
Joined: Sat Oct 24, 2009 11:18 am

Re: Problem 289

Post by juris.c »

I'm curious whether just this problem happened to be so hard or it is new tendency for Project Euler?
By the way are you going to release #300 in this season or after summer break?
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 289

Post by hk »

juris.c wrote:I'm curious whether just this problem happened to be so hard or it is new tendency for Project Euler?
The problems have a variety of difficulty. After a number of not so difficult problems we thought that it was time to publish a hard one.
By the way are you going to release #300 in this season or after summer break?
We have not decided yet.
Image
War ruins the life and health of untold numbers of innocent children.
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 289

Post by zwuupeape »

Yeah! I managed to get cyclop's incorrect results! :)

How hard was it to fix ?
cyclops
Posts: 15
Joined: Mon Apr 05, 2010 12:30 am

Re: Problem 289

Post by cyclops »

zwuupeape wrote:Yeah! I managed to get cyclop's incorrect results! :)

How hard was it to fix ?
For me it was tough to go from getting L(3,3) = 106882 to the correct L(6,10), but my method was both suboptimal (in terms of running time and memory) and overly complex. I'm currently unemployed, so I have time to type out long, convoluted and illegible code. :lol:

I don't think it's giving too much away to say that by the time I got L(3,3) = 106882, I was subjectively about 45% of the way to a final solution (in terms of work, and breakthroughs). Possibly 40% is more accurate considering how much debugging there was, due to cumbersome code. But I hope that's not discouraging, because you may be closer than you think! :D
User avatar
utomaya
Posts: 42
Joined: Mon Mar 08, 2010 7:06 am
Location: Okinawa , Japan

Re: Problem 289

Post by utomaya »

I am curios about the number of the solvers, why it is so few?

As someone mentioned above, problem 261 is a very hard problem, but when I solved it in about Nov/16(3 weeks after the problem was released), I was the 98th or 99th, and one or two days later, the 100th arrived. I must admit #261 is harder than #289, because the time I spent on 261 is more than on #289.

In recent problems, No matter how hard it is, 100th have come within 3 weeks. somethimes even faster, 100th has come within 2 weeks.

But #289 is almost 3 weeks after it was released. But only 42 solutions, it is not resonable (compared with other "hard" problems).

Is there something wrong?
Image
TripleM
Posts: 384
Joined: Fri Sep 12, 2008 3:31 am

Re: Problem 289

Post by TripleM »

utomaya wrote:I must admit #261 is harder than #289, because the time I spent on 261 is more than on #289.
The difficulty of a problem isn't just about how long you yourself took :P I found 261 relatively easy, and still haven't solved 289. Clearly the difficult should be based on the number of solvers, and by that aspect 289 is indeed harder.
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 289

Post by quilan »

utomaya wrote:I am curious about the number of the solvers, why it is so few? ... Is there something wrong?
I'll be honest, I'm rather baffled by it. You can pretty much draw all 37 of the (2,2) scenarios by brute force on a piece of paper, and that should give all the information needed really... I didn't even blink for this one, whereas others had me stumped for a while.
ex ~100%'er... until the gf came along.
Image
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 289

Post by zwuupeape »

EDIT: Apparently not.

Damn, I've been probably spending too much time on this :\

How about L(4, 25) = 7683575736
L(4, 5) = 6792271756

?
Last edited by zwuupeape on Fri May 14, 2010 4:50 pm, edited 1 time in total.
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 289

Post by quilan »

zwuupeape wrote:Are these correct:

L(4, 25) = 7683575736 -- No
L(4, 5) = 6792271756 -- No
ex ~100%'er... until the gf came along.
Image
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 289

Post by quilan »

hrmm... did I blink & all the sudden 20 people solved it this weekend, with only zwuupeape commenting on it?
ex ~100%'er... until the gf came along.
Image
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 289

Post by zwuupeape »

I must say, pretty much the only reason I bothered to post my code there - probably the ugliest thing I ever wrote - is that this weird coincidence was bound to occur. Anyway thanks to cyclops and quilan for helping :)
Post Reply