Problem 403

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.
Post Reply
User avatar
mctrafik
Posts: 27
Joined: Thu Oct 06, 2011 6:42 am
Location: Los Angeles, California
Contact:

Problem 403

Post by mctrafik »

This is a stupid question,
but what lattice points are being referred to? Dimond, rectangle or square? So like are the coordinates like (0, 0), (0, 1) .. (1, 0), (1, 1) .... or something else?
A picture would be nice :D
Image
"Nothing in this world that's worth having comes easy"
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 403

Post by hk »

Here's an illustration of L(1,2)=8:
403.gif
So nothing esoterical and drawable manually on graph paper.
You do not have the required permissions to view the files attached to this post.
Image
War ruins the life and health of untold numbers of innocent children.
User avatar
mctrafik
Posts: 27
Joined: Thu Oct 06, 2011 6:42 am
Location: Los Angeles, California
Contact:

Re: Problem 403

Post by mctrafik »

I'm sorry. What? 403.gif? Where is it? :D
Image
"Nothing in this world that's worth having comes easy"
sivakd
Posts: 217
Joined: Fri Jul 17, 2009 9:37 am
Location: California, USA
Contact:

Re: Problem 403

Post by sivakd »

Here is one I created.

Image
Image
puzzle is a euphemism for lack of clarity
User avatar
mctrafik
Posts: 27
Joined: Thu Oct 06, 2011 6:42 am
Location: Los Angeles, California
Contact:

Re: Problem 403

Post by mctrafik »

Thank you! Most helpful!
Image
"Nothing in this world that's worth having comes easy"
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 403

Post by hk »

mctrafik wrote:I'm sorry. What? 403.gif? Where is it? :D
Mysteriously it was gone. Uploaded again.
Image
War ruins the life and health of untold numbers of innocent children.
User avatar
mctrafik
Posts: 27
Joined: Thu Oct 06, 2011 6:42 am
Location: Los Angeles, California
Contact:

Re: Problem 403

Post by mctrafik »

Maybe someone else got the same problem. I keep getting S(5) = 360. Can't seem to find where I'm going wrong.

Here are the (a, b) pairs I'm getting and how many points are there between the line and the parabola:

Code: Select all

  0   0 [1]
  0   1 [4]
  1   0 [2]
 -1   0 [2]
  1   2 [8]
 -1   2 [8]
  2  -1 [1]
 -2  -1 [1]
  2   0 [4]
 -2   0 [4]
  3  -2 [2]
 -3  -2 [2]
  3   0 [9]
 -3   0 [9]
  0   4 [15]
  2   3 [15]
 -2   3 [15]
  3   4 [27]
 -3   4 [27]
  4  -4 [1]
 -4  -4 [1]
  4  -3 [4]
 -4  -3 [4]
  5  -4 [9]
 -5  -4 [9]
  4   0 [16]
 -4   0 [16]
  4   5 [43]
 -4   5 [43]
  5   0 [29]
 -5   0 [29]
Image
"Nothing in this world that's worth having comes easy"
luckyrodman
Posts: 6
Joined: Mon Oct 22, 2012 2:57 pm

Re: Problem 403

Post by luckyrodman »

It's you again!!!

Why do you always ask:"Please tell me where I'm going wrong?" You can see there are already 63 solvers but no one come here to ask for more hints to solve it.

Please remember that problems on ProjectEuler are neither job nor homework. This problem is a difficult one. It is too hard for beginners. I suggest you can do older but simpler problems to get some knowledge before you try the newest problems.

And please remember that this board is used for clarifications when you don't understand the problem statement.
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 403

Post by hk »

@ mctrafik: your lattice points count is off for several a,b pairs. Not telling more.
Good luck.
Image
War ruins the life and health of untold numbers of innocent children.
User avatar
mctrafik
Posts: 27
Joined: Thu Oct 06, 2011 6:42 am
Location: Los Angeles, California
Contact:

Re: Problem 403

Post by mctrafik »

hk wrote:@ mctrafik: your lattice points count is off for several a,b pairs.

Excellent. That's what I was hoping to hear. :) Just wanted to make sure I got (a, b) pairs correctly. Thank you.
Last edited by mctrafik on Wed Nov 28, 2012 6:26 am, edited 1 time in total.
Image
"Nothing in this world that's worth having comes easy"
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 403

Post by hk »

@ LuckyRodman and mctrafik: please keep both to the topic: Project Euler Clarifications.
In my opinion you're both off topic.
Image
War ruins the life and health of untold numbers of innocent children.
Post Reply