This will probably lead to a change in the problem description, so I'll let you guys know here,
I've found a mistake with this problem. I've laid my entire strategy out in the problem 44 thread, so check it out there:
https://projecteuler.net/thread=44&page=9#last
Cheers, Lukas
Problem 044
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.
-
v6ph1
- Posts: 134
- Joined: Mon Aug 25, 2014 7:14 pm
-
wglp
- Posts: 1
- Joined: Mon Dec 08, 2025 7:20 pm
Re: Problem 044
Remember to calculate the correct difference!
I was iterating "a difference" and lost track that it is actually part of the answer,
but not the correct part.
So with the example and let's assume 48 is pentagonal, I took:
P4 = P8-P7 = 22 as the solution, using P4 is "the" difference, but it's not!
Correct needs to be:
D = P7-P4 = 48 (again, assumption 48 is pentagonal)
I was iterating "a difference" and lost track that it is actually part of the answer,
but not the correct part.
So with the example and let's assume 48 is pentagonal, I took:
P4 = P8-P7 = 22 as the solution, using P4 is "the" difference, but it's not!
Correct needs to be:
D = P7-P4 = 48 (again, assumption 48 is pentagonal)
