Problem 180

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.
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Problem 180

Post by mdean »

Ugh... I thought all the headaches on this one were behind me. For k=10, my program finds 50 unique values of s(x,y,z) and gives u+v as 330436949. The troubling part is everything so far is checking out.

Update: Never mind. Stupid mistake. Should be easily remedied.

Update: or not... I must have some overflow somewhere. k=10 is working fine. k=35 still not...
Image
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Problem 180

Post by mdean »

Okay, now I'm beginning to have some serious doubts. I think I've ruled out overflow. I've tried converting each of the s(x,y,z) to decimal then adding them up and comparing that to t computed as a decimal. They match.

Really not sure what to do right now.

Update: And problem found. Apparently, I had an error for odd k.
Image
Post Reply