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
I have an algorithm that gets me an answer that is not correct, but I feel like it should be. Can someone confirm if they get the same results where n <= 2^x?
Reluctant to ask because I must be making another careless error again but, as documented on PE.net, myself and
at least one other solver can only get the correct solution by [myself accidentally and the other(s) intentionally]
including {0,0,0} as a valid losing triplet.
Any thoughts most appreciated.
Last edited by kenbrooker on Mon Jun 25, 2018 6:20 pm, edited 1 time in total.
"Good Judgment comes from Experience;
Experience comes from Bad Judgment..."
Ah, I see. Nevertheless, the question is correct as stated.
{0, 0, 0} is a losing triple, but it does not count towards the answer.
If people need to count it to get the correct answer, it is likely they have an off-by-one error elsewhere.
Just to express my appreciation and to let you and jaap and dtsarun know that
I have just now added another Post on the Subject at PE.net which,
I'm afraid, only adds to the mystery...
"Good Judgment comes from Experience;
Experience comes from Bad Judgment..."