Page 1 of 3
Problem 023
Posted: Mon Jun 30, 2008 6:22 pm
by phillip1882
i believe i solved to problem, but the answer i gave doesn't check. i used basically a three step algorithm to sovle,
first generate all abundant numbers between 1 and 28123, then add every abundant number to every abundant number, crossing off each total from the list of numbers between 1 and 28123, and finally adding all numbers that were not crossed off. i checked by hand the first 10 abundant numbers my program generates, and they are correct, so i'm not sure where i am going wrong, can someone look at my code and maybe give me a hint?
Re: problem #23
Posted: Mon Jun 30, 2008 6:43 pm
by daniel.is.fischer
I could take a look, PM the code.
Problem 23 - incorrect info?
Posted: Wed Nov 05, 2008 6:48 pm
by joesmoe10
Hey I'm working on Problem 23 and I noticed a discrepancy. Problem 23 states
By mathematical analysis, it can be shown that all integers greater than 28123 can be written as the sum of two abundant numbers. However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is less than this limit.
However the Wolfram
http://mathworld.wolfram.com/AbundantNumber.html site states:
Every number greater than 20161 can be expressed as a sum of two abundant numbers.
This shouldn't affect an answer but it is curious. Perhaps some new research came out?
Re: Problem 23 - incorrect info?
Posted: Wed Nov 05, 2008 6:52 pm
by stijn263
However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is 20161.
Re: Problem 23 - incorrect info?
Posted: Wed Nov 05, 2008 7:49 pm
by ed_r
I have some sympathy for joesmoe10. I mean, "this upper limit cannot be reduced any further by analysis" ... that's quite a bold claim, isn't it? What about mathematical analysis by cases? - not pretty, but still "analysis".
IMHO, PE#23 should've used the true bound instead of one found in some random guy's proof on the net.
Re: Problem 23 - incorrect info?
Posted: Thu Nov 06, 2008 10:19 pm
by euler
@joesmoe10: It is quite possible that some new research has come out, but I am unaware of any; I'd be happy to be corrected though (see below.)
@ed_r: What do you mean "some random guy's proof on the net"? It's elementary number theory and apart from a couple of papers published: one in the early 1960's and the other in the early 1970's, I am unaware of any reduction in the limit without the aid of a computer. Remember that I put that problem together over six years ago and I think a little latitude is needed when retrospective criticisms are made; access to a whole lot more information is available since then. I am quite happy to alter the limit/wording to reflect the lower limit if that is generally preferred. However, I personally think a clear line lies between the type of mathematical analysis that relies on deduction and the type that relies on exhaustive testing with the aid of a computer.
Perhaps I need to change the word "analysis" to remove/replace ambiguity?
Re: Problem 23 - incorrect info?
Posted: Thu Nov 06, 2008 10:53 pm
by ed_r
Some random guy's proof = whatever it was that I found by googling your "analysis" bound.
Re latitude - yes, of course. That's why I won't ask you to change it.
Re: Problem 23 - incorrect info?
Posted: Fri Nov 07, 2008 9:13 pm
by Ted
My vote is to leave it as is. Its one of the many notes to self I've made to explore after I solve all the other problems, as to why analysis can't (or didn't so far) lower the bound.
I am fascinated by what can be brute forced and what can be analyzed, and while working many of Project Euler's puzzles I wonder whether I've uncovered all the "tricks," whhich, more often than not, I haven't.
With Problem 23, at least the literature says, that perhaps no one has!
Re: Problem 23 - incorrect info?
Posted: Sat Nov 08, 2008 9:11 pm
by euler
For your reference, I've put together a couple of problems on my other website that addresses this proof.
Even Sum Of Two Abundant Numbers (Every even integer n [ge] 48 can be written as a sum of two abundant numbers)
Sum Of Two Abundant Numbers (Every integer greater than 28123 can be written as a sum of two abundant numbers)
Although I am sure that many visitors will find the proof useful, I am a little uncomfortable with the "28123" problem as it is not only somewhat contrived, but it goes beyond the difficulty I like to post on mathschallenge.net; the website is aimed at the range of school students.
Re: Problem 023
Posted: Tue Feb 03, 2009 6:11 pm
by DDgeva
I also can't seem to get the right answer even though I think my code is correct.
the sum I'm getting is 4248567. am I way off?
one problem I'm getting is that my program states 62 as a number that can't be produced by adding two abundant numbers even though it isn't true. can someone please check my code? it's quite clear (JAVA):
if it helps, i can upload the list of numbers that my program lists as numbers that can't by expressed by adding two abundants.
thanks for your time.
Re: Problem 023
Posted: Tue Feb 03, 2009 6:34 pm
by quilan
Thou shalt not post code. I'd edit your post asap.
Re: Problem 023
Posted: Tue Feb 03, 2009 6:53 pm
by Tommy137
@ DDgeva
Check your sumDivisors-function. 62 should be the sum of the two abundant numbers 20 and 42.
Re: Problem 023
Posted: Tue Feb 03, 2009 7:41 pm
by hk
Before it was snipped away (thanks Daniel for doing so) I had a quick glance at the code and spotted the problem Tommy presumably spotted too.
If you can't find the problem, you can PM me.
Re: Problem 023
Posted: Tue Feb 03, 2009 8:39 pm
by DDgeva
quilan wrote:Thou shalt not post code. I'd edit your post asap.
sorry about that.. I forgot this isn't a problem specific thread that only people who solved correctly can see.
I found out what one of my problems was. I was checking if the number % its root = zero, but the root was rounded down so the square root of 20 was considered 4, therefore I was decreasing the sum of 20's divisors by 4. I solved that one, but I still get a wrong answer.
I got the impression that I'm allowed to post wrong solutions, so this is what I get now:
*censured for being right //Haha sounds a bit political
any ideas guys? anyone willing to check my code on PMs?
EDIT: sorry for the trouble, I probably skipped a character or something because now I tried inputting the answer and it's correct.
thanks for the comments.
Re: Problem 023
Posted: Tue Feb 03, 2009 8:47 pm
by hk
DDgeva wrote:quilan wrote:Thou shalt not post code. I'd edit your post asap.
sorry about that.. I forgot this isn't a problem specific thread that only people who solved correctly can see.
Wouldn't have been difficult to grasp though, because you did not solve it yet.
Anyhow, please read
viewtopic.php?f=50&t=1356#p12839 carefully.
Re: Problem 023
Posted: Tue Feb 03, 2009 8:50 pm
by Tommy137
hk wrote:DDgeva wrote:quilan wrote:Thou shalt not post code. I'd edit your post asap.
sorry about that.. I forgot this isn't a problem specific thread that only people who solved correctly can see.
Wouldn't have been difficult to grasp though, because you did not solve it yet.

I'm always astonished by your display of pure logic

Re: Problem 023
Posted: Tue Feb 03, 2009 8:53 pm
by hk
Obviously a result of more than 30 years of math teaching.

Problem 23 Hints
Posted: Fri Apr 03, 2009 11:27 am
by iamhigh
Can somebody verify that the total number of Abundant numbers from 1 to 28123 is 6965?
Thank you!
Re: Problem 23 Hints
Posted: Fri Apr 03, 2009 11:38 am
by Tommy137
Yep, that's correct.
PS: There is already a thread about Problem 23 (
viewtopic.php?f=50&t=985). The next time you have a question, please check for existing threads.
Re: Problem 23 Hints
Posted: Fri Apr 03, 2009 11:41 am
by iamhigh
great. yep I checked that thread. did not find the answer to my q and didn't want to hijack somebody else's thread.
thanks.