I am exactly where you were at the 5422051 solutions...if it wouldn't be too big of a hint can you explain why 38,000,000 is a significant number? If it is too much of a hint, then just ignore...ffff0 wrote:Same as everyone. As for now, i can't see any difference for even and odd N. And i can't understand why answer for 38000000 is correct and answer for 10^11 is not. I simply don't see any special cases between this numbers.
My code finds 5422051 solutions for 10^11. Is it too big or too small?
Update: Wait a bit, I've got an idea.
Update 2: And hero have won once again without any help!
There are 5422629 solutions in total and there is no difference between even and odd N. It's something else.
Problem 233
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.
-
enderw88
- Posts: 9
- Joined: Tue Feb 07, 2012 4:18 am
Re: Problem 233

- hk
- Administrator
- Posts: 12831
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 233
38000000 is significantly less than 10^11.
That's the only significance of 38000000.
That's the only significance of 38000000.

War ruins the life and health of untold numbers of innocent children.
-
enderw88
- Posts: 9
- Joined: Tue Feb 07, 2012 4:18 am
Re: Problem 233
Thanks! I was beginning to think it was astrological in nature...I will keep thinking.hk wrote:38000000 is significantly less than 10^11.
That's the only significance of 38000000.

- Marcus_Andrews
- Administrator
- Posts: 1637
- Joined: Wed Nov 09, 2011 5:23 pm
Re: Problem 233
XDhk wrote:38000000 is significantly less than 10^11.
That's the only significance of 38000000.
-
enderw88
- Posts: 9
- Joined: Tue Feb 07, 2012 4:18 am
Re: Problem 233
What is "XD"?Marcus wrote:XDhk wrote:38000000 is significantly less than 10^11.
That's the only significance of 38000000.

- Marcus_Andrews
- Administrator
- Posts: 1637
- Joined: Wed Nov 09, 2011 5:23 pm
Re: Problem 233
It's like a smiley.enderw88 wrote:What is "XD"?Marcus wrote:XDhk wrote:38000000 is significantly less than 10^11.
That's the only significance of 38000000.
For some reason "That's the only significance of 38000000" made me laugh
-
JMHoekstra
- Posts: 1
- Joined: Thu Jan 03, 2013 8:59 am
Re: Problem 233
The first time I'm asking, but I could really use a hint on problem 233. By studying the properties of f(N) I have generated a list with all 'primitives' N. But I cannot find a way to also sum the right multiples for these, without double counting of common multiples etc, under 1e11, for f(N)=420 without requiring a 'quantum computer' in terms of computing time.
Any hints on how I should proceed?
EDIT: ok, so I was close already. Solved it one day later: fixed a bug. And with some smart aborting and limiting of loops, I could keep the computing time within acceptable limits. Also, sets in Python are great! Still, my solution is way over one minute though. More like 30 minutes. Luckily I saved my data from previous attempts. So the final program, by using two previously generated lists, ran in about 1 minute.
Quite surprising where this question leads you! Would never have guessed that, the first time I read the problem.
Fibonacci award!
Bye,
Jacco Hoekstra
Any hints on how I should proceed?
EDIT: ok, so I was close already. Solved it one day later: fixed a bug. And with some smart aborting and limiting of loops, I could keep the computing time within acceptable limits. Also, sets in Python are great! Still, my solution is way over one minute though. More like 30 minutes. Luckily I saved my data from previous attempts. So the final program, by using two previously generated lists, ran in about 1 minute.
Quite surprising where this question leads you! Would never have guessed that, the first time I read the problem.
Fibonacci award!
Bye,
Jacco Hoekstra
Last edited by JMHoekstra on Fri Jan 04, 2013 1:40 pm, edited 1 time in total.
- TheEvil
- Posts: 84
- Joined: Sun Nov 13, 2011 10:38 am
- Location: Szeged, Hungary
Re: Problem 233
When I was trying to solve this problem, I could find a formula for f(N), but I spent a day with finding that little mistake, like everyone else. If you have something for 'primitive' N-s, you should try to find something for general N-s. And after that you won't have double counting problems.

-
mdean
- Posts: 206
- Joined: Tue Aug 02, 2011 2:05 am
Re: Problem 233
Ugh... My code is giving the correct answer for 38,000,000 but my answer for 10^11 is apparently wrong. Guessing it's probably a rounding error at this point.
Update: my 10^10 value turned out to be correct and it wasn't a rounding error, but I did manage to find and correct the problem. Looks like I just need 144 for Fibonacci Fever now. That problem and problem 84, which I need for centurion, I'm kind of dreading...
Update: my 10^10 value turned out to be correct and it wasn't a rounding error, but I did manage to find and correct the problem. Looks like I just need 144 for Fibonacci Fever now. That problem and problem 84, which I need for centurion, I'm kind of dreading...
Last edited by mdean on Sat Jan 26, 2013 7:23 am, edited 1 time in total.

-
ffff0
- Posts: 50
- Joined: Sun Aug 21, 2011 6:26 am
- Location: Moscow, Russian Federation
-
bobjalynch
- Posts: 3
- Joined: Sun Jun 03, 2012 11:15 pm
Re: Problem 233
I'm missing something on this one. My code is written generically, so should work for any value of N. I get the answer quoted on this forum when I plug in the test case N = 38,000,000. But my solution for N=1^11 is wrong. I know I'm on the right path, as I get the same # of solutions (5422051) as ffff0 mentioned in his original post. So far, I haven't had the same epiphany that ffff0 had, when he got the right # of solutions at 5422629. I'm only off by 578 solutions, out of 5.4 million ! I've scoured my brain and my code for something missing, but I'm coming up blank. Any minor minor hints pointing in the right direction would be greatly appreciated (although my suspicion is that any hint will give it away).... ffff0 - Maybe it would be too big a hint, but would you be willing to give me a value of N that was in your updated correct list (of 5422629 solutions) that wasn't in your list of 5422051 solutions ?
-
bobjalynch
- Posts: 3
- Joined: Sun Jun 03, 2012 11:15 pm
Re: Problem 233
Think I just had my epiphany, having to do with the completeness of my 3(mod4) list. Now I just have to figure out to code it, but not tonight. Will get back tomorrow, hopefully with glory...
-
bobjalynch
- Posts: 3
- Joined: Sun Jun 03, 2012 11:15 pm
Re: Problem 233
No glory after a few more hours of troubleshooting... <snip by mpiotte> Number of solutions = 5422051, off by a few hundred, compared to posted correct answer. Any hints possible ?
EDIT by mpiotte: spoiler removed.
EDIT by mpiotte: spoiler removed.
- rlindley
- Posts: 69
- Joined: Wed Aug 01, 2007 10:55 pm
- Location: Weston, MO USA
Re: Problem 233
I don't know why I did not think to look here when I was working on this problem. It sure would have helped me. But I finally got it anyway.

-
n2sz
- Posts: 2
- Joined: Sun Aug 12, 2018 4:25 pm
Re: Problem 233
I wanted to just drop in and thank everyone who participated in this thread. I like having a 'safe zone' where I can get hints which will not destroy the value of the puzzle. Due to the various points of info given here, I was able to confirm that I was mostly on the right track, which was a great boost for my determination to continue. It turned out to be a number of silly bugs, including, but not limited to, the very same silly bugs others were dealing with (< instead of <= for instance!).
-
DeKlod
Re: Problem 233
Nothing particularly interesting to say, other than that I'm one of those who get the 'classic but wrong' answer for 10^10 as well even though the answer for 38000000 is correct.
So if, as I rather expect, I end up going completely mad over this one, please come and visit me at the hospital
DeKlod
So if, as I rather expect, I end up going completely mad over this one, please come and visit me at the hospital
DeKlod
-
DeKlod
Re: Problem 233
Blimey, got there in the end - and I can't believe how long I spent looking at the code when it turned out to be basically sound and my mistake was somewhere entirely else...
I know see why so many people seem to be getting the same false result as I did: and to all my bothers and sisters out there who are struggling: don't despair, check your very basic arithmetic and remember that there's more than one way to skin a cat (hope that's not too much of a hint)
I know see why so many people seem to be getting the same false result as I did: and to all my bothers and sisters out there who are struggling: don't despair, check your very basic arithmetic and remember that there's more than one way to skin a cat (hope that's not too much of a hint)
-
llawton
- Posts: 2
- Joined: Wed Aug 02, 2023 4:48 pm
Re: Problem 233
OK - thought I had it. I'm blind, so I shy away from a lot of the geometry problems, but I got excited when I started thinking about triangles and factorizations.
But based on earlier posts, I am missing a whole slew of solutions. I can generate 585259 "minimal" solutions - i.e. solutions where any proper divisor is not a solution. Can anyone confirm or tell me by what order of magnitude I am off? When I throw in the relevant multiples, I get nowhere near 5000000 solutions.
Help? Beating my head against a wall . . ..
But based on earlier posts, I am missing a whole slew of solutions. I can generate 585259 "minimal" solutions - i.e. solutions where any proper divisor is not a solution. Can anyone confirm or tell me by what order of magnitude I am off? When I throw in the relevant multiples, I get nowhere near 5000000 solutions.
Help? Beating my head against a wall . . ..
-
llawton
- Posts: 2
- Joined: Wed Aug 02, 2023 4:48 pm
Re: Problem 233
Yay! I was hoping that posting would jostle something loose and help me find the program or logic bug - got it now. Thanks for letting me post. 
