Problem 295

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
harryeakins
Posts: 2
Joined: Fri Sep 17, 2010 10:02 am

Problem 295

Post by harryeakins »

I'm having difficulty with the first part of this problem... - link
It is stated that L(10) = 30, but I can't get that answer. I think there are 31 lenticular holes for r <= 10, and here's why:

There are 7 radii which have arcs spanning a single cell in the lattice (r = 1, root(5), root(13),..., root(85)). These can be combined together the for (7*8)/2 = 28 lenticular holes.

There are 2 radii which have arcs spanning a rectangle of width 3x1 (r = 5, root(65)). These can be combined together for (2*3)/2 = 3 lenticular holes.

28+3 = 31 != 30

I can't figure this one out for the life of me! Any hints?

Thank you
niino
Posts: 873
Joined: Sun May 24, 2009 3:22 am
Location: Japan

Re: Problem 295

Post by niino »

We must count distinct lenticular pairs.
Don't you count one lenticular pair twice?
Image
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Problem 295

Post by jaap »

There are 31 different lenticular shapes that could be formed, but only 30 distinct lenticular pairs.
harryeakins
Posts: 2
Joined: Fri Sep 17, 2010 10:02 am

Re: Problem 295

Post by harryeakins »

Ahhh i got it ;)

Cheers!
albert_nik
Posts: 18
Joined: Wed Apr 22, 2009 11:46 am

Re: Problem 295

Post by albert_nik »

Continuing with the same reasoning I count:
  • for N=10 --> 31 shapes and 30 distinct pairs.
    for N=100 --> 3330 shapes and less than 3330 distinct pairs.
Are there some other pairs that I'm missing?
ffff0
Posts: 50
Joined: Sun Aug 21, 2011 6:26 am
Location: Moscow, Russian Federation

Re: Problem 295

Post by ffff0 »

What about rectangles of other sizes?
Image
albert_nik
Posts: 18
Joined: Wed Apr 22, 2009 11:46 am

Re: Problem 295

Post by albert_nik »

Both sides >1 ?
ffff0
Posts: 50
Joined: Sun Aug 21, 2011 6:26 am
Location: Moscow, Russian Federation

Re: Problem 295

Post by ffff0 »

Indeed.
Image
Post Reply