Problem 272
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.
-
ssp
- Posts: 2
- Joined: Sun Nov 11, 2007 7:49 am
Problem 272
Hello,
i've found 63450979 numbers with C(n) = 242 and get wrong answer (3463044300794026317).
Is those numbers near to the right answer?
i've found 63450979 numbers with C(n) = 242 and get wrong answer (3463044300794026317).
Is those numbers near to the right answer?
-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
-
viv_ban
- Posts: 23
- Joined: Mon May 26, 2008 3:09 pm
-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
-
viv_ban
- Posts: 23
- Joined: Mon May 26, 2008 3:09 pm
Re: Problem 272
Thanks zwuupeape for reply. Can you please recheck the value because I am getting the same answer (for 3*10^8) with a completely different algorithm (semi brute force).
-
zwuupeape
- Posts: 189
- Joined: Tue Jun 09, 2009 6:11 pm
Re: Problem 272
Oh, you are correct. I have a pretty subtle bug there. My program misses exactly one number. I'm surprised it actually works for higher values, now that I think of it 
So yeah, it's good. Sorry!
So yeah, it's good. Sorry!
-
viv_ban
- Posts: 23
- Joined: Mon May 26, 2008 3:09 pm
Re: Problem 272
hey no problem!
I learned lot of new and interesting things and finally came up with faster and better algorithm.
I learned lot of new and interesting things and finally came up with faster and better algorithm.
-
oleglyamin
- Posts: 39
- Joined: Mon Aug 08, 2011 8:49 am
Re: Problem 272
Could anyone confirm that:
1) there are 663 positive results for n <= 3 * 10^7 for a total of 13166591472.
2) there are 29454 positive results for n <= 3 * 10^8.
Thanks.
1) there are 663 positive results for n <= 3 * 10^7 for a total of 13166591472.
2) there are 29454 positive results for n <= 3 * 10^8.
Thanks.
-
oleglyamin
- Posts: 39
- Joined: Mon Aug 08, 2011 8:49 am
-
lld2006
- Posts: 8
- Joined: Sat Jul 14, 2012 9:53 pm
Re: Problem 272
The result for 3e7 is not correct. It is really misleading.oleglyamin wrote:Could anyone confirm that:
1) there are 663 positive results for n <= 3 * 10^7 for a total of 13166591472.
2) there are 29454 positive results for n <= 3 * 10^8.
Thanks.
-
Jamie
- Posts: 11
- Joined: Sat Feb 28, 2009 9:40 am
Re: Problem 272
Strangely enough, I get these wrong results as welloleglyamin wrote:Could anyone confirm that:
1) there are 663 positive results for n <= 3 * 10^7 for a total of 13166591472.
2) there are 29454 positive results for n <= 3 * 10^8.
Thanks.
EDIT: found my issue. Though I probably can't say too much about it.
- yourmaths
- Posts: 47
- Joined: Mon Aug 25, 2014 11:00 am
Re: Problem 272
OK I have been working on and debugging this problem all day and finally got the "correct wrong" answer aboveJamie wrote: Tue Sep 02, 2014 12:46 amStrangely enough, I get these wrong results as welloleglyamin wrote:Could anyone confirm that:
1) there are 663 positive results for n <= 3 * 10^7 for a total of 13166591472.
2) there are 29454 positive results for n <= 3 * 10^8.
Thanks.
EDIT: found my issue. Though I probably can't say too much about it.
Last edited by yourmaths on Thu Oct 18, 2018 1:24 am, edited 1 time in total.
level = lambda number_solved: number_solved // 25


- yourmaths
- Posts: 47
- Joined: Mon Aug 25, 2014 11:00 am
Re: Problem 272
For future solvers: if you end up getting the correct wrong answer above, you are about 95% there, and understand the problem well enough to identify the issue and solve it.
level = lambda number_solved: number_solved // 25


-
mdean
- Posts: 206
- Joined: Tue Aug 02, 2011 2:05 am
Re: Problem 272
I think I'm getting close to solving this problem. So far, I have the one value in this thread that's been confirmed (by viv_ban and zwuupeape). I was wondering if I could pm someone who has completed this problem with my value for 3*10^9. If someone could confirm that this value is correct, it would help focus my troubleshooting. If this value is wrong, I could have larger issues, but at least I'd know where to start looking.

-
MuthuVeerappanR
- Posts: 539
- Joined: Sun Mar 22, 2015 2:30 pm
- Location: India
- Contact:
Re: Problem 272
Hi mdean,
If you could PM your value, I can confirm it.
If you could PM your value, I can confirm it.

It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.
-
castrate
- Posts: 31
- Joined: Mon Aug 19, 2019 2:34 pm
Re: Problem 272
I think I'm on the (seemingly)correct way, but the answer was wrong, even not the same with the "correct wrong" answer. Could you please check:
Is the smallest number satisfying C(n)=242 <snipped>?
And is the smallest number satisfying C(n)=242 and not divisible by 9 <snipped>?
Edit: Solved the problem.
Is the smallest number satisfying C(n)=242 <snipped>?
And is the smallest number satisfying C(n)=242 and not divisible by 9 <snipped>?
Edit: Solved the problem.