Problem 289
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.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
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
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
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.
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
-
quilan
- Posts: 182
- Joined: Fri Aug 03, 2007 11:08 pm
Re: Problem 289
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.


-
cyclops
- Posts: 15
- Joined: Mon Apr 05, 2010 12:30 am
Re: Problem 289
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.
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
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...
#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
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.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.
(And I haven't solved it yet.)
-
cyclops
- Posts: 15
- Joined: Mon Apr 05, 2010 12:30 am
Re: Problem 289
You've persuaded me.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.)
-
niino
- Posts: 873
- Joined: Sun May 24, 2009 3:22 am
- Location: Japan
Re: Problem 289
For reference, I remember there had been no solvers in the first 4 hours at "Perfection Quotients", Problem 241 (View Problem).

- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
Re: Problem 289
SirJective said: (Problem 177 (View Problem))

If I recall it correctly, I had the 25th solution three days later..I was quite surprised that this problem is being solved so slowly, with my solution being the 17th, after four days.
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 enoughTripleM 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.)
-
juris.c
- Posts: 23
- Joined: Sat Oct 24, 2009 11:18 am
Re: Problem 289
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?
By the way are you going to release #300 in this season or after summer break?
- hk
- Administrator
- Posts: 12832
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 289
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.juris.c wrote:I'm curious whether just this problem happened to be so hard or it is new tendency for Project Euler?
We have not decided yet.By the way are you going to release #300 in this season or after summer break?

War ruins the life and health of untold numbers of innocent children.
-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
-
cyclops
- Posts: 15
- Joined: Mon Apr 05, 2010 12:30 am
Re: Problem 289
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.zwuupeape wrote:Yeah! I managed to get cyclop's incorrect results!
How hard was it to fix ?
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!
- utomaya
- Posts: 42
- Joined: Mon Mar 08, 2010 7:06 am
- Location: Okinawa , Japan
Re: Problem 289
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?
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?

-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
Re: Problem 289
The difficulty of a problem isn't just about how long you yourself tookutomaya wrote:I must admit #261 is harder than #289, because the time I spent on 261 is more than on #289.
-
quilan
- Posts: 182
- Joined: Fri Aug 03, 2007 11:08 pm
Re: Problem 289
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.utomaya wrote:I am curious about the number of the solvers, why it is so few? ... Is there something wrong?
ex ~100%'er... until the gf came along.


-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
Re: Problem 289
EDIT: Apparently not.
Damn, I've been probably spending too much time on this :\
How about L(4, 25) = 7683575736
L(4, 5) = 6792271756
?
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
zwuupeape wrote:Are these correct:
L(4, 25) = 7683575736 -- No
L(4, 5) = 6792271756 -- No
ex ~100%'er... until the gf came along.


-
quilan
- Posts: 182
- Joined: Fri Aug 03, 2007 11:08 pm
Re: Problem 289
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.


-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
Re: Problem 289
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 