Problem 044

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


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
lukasdonkers
Posts: 1
Joined: Mon Jul 18, 2016 8:27 pm

Re: Problem 044

Post by lukasdonkers »

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
v6ph1
Posts: 134
Joined: Mon Aug 25, 2014 7:14 pm

Re: Problem 044

Post by v6ph1 »

It was a false positive during your code - answered in the internal thread.
Image
wglp
Posts: 1
Joined: Mon Dec 08, 2025 7:20 pm

Re: Problem 044

Post by wglp »

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)
Post Reply