Problem 177
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.
- sfabriz
- Posts: 175
- Joined: Thu Apr 06, 2006 12:18 am
- Location: London - UK
Problem 177
Hello,
the 177 statement is not clear for me.
The question sais: "What is the total number of non-similar integer angled quadrilaterals?"
What does non-similar means? Let's make an example:
Let's call the four angles a,b,c,d, as the angles that you see looking towards vertex A,B,C,D.
If those angles were e.g. a=80, b=70, c=110 and d=100, we would have a convex quadrilateral.
Now suppose I can get a combination of inner angles out of it that satisfies the condition, having all inner angles integer, but suppose that there is also another combination (e.g. stretching the quadrilateral in one dimensions) that preserves the angles a,b,c,d but changes the 8 inner angles, and suppose this combination is good too. Do I have to count both of these solutions or just one?
Also, what about rotations? A quadrilateral with angles a=70, b=110, c=100 and d=80 (i.e. a rotation of my example) would it be considered similar or not?
Also, another question (maybe a stupid one).
We have an error bound of 10^-9. What if I change a good combination of just about 10^-12? All other angles would change accordingly to that, and probably they would still be integer. Giving this little change another valid combination, aren't those infinite?
1.00000000001 is different from 1.00000000002 and 1.00000000003 and 1.00000000004 and so on. All of them evaluate to 1 since they are well beyond the error bound, but they are all different...
Sorry if I made stupid questions, but I really need a clarification to solve this one.
Cheers,
sfabriz
the 177 statement is not clear for me.
The question sais: "What is the total number of non-similar integer angled quadrilaterals?"
What does non-similar means? Let's make an example:
Let's call the four angles a,b,c,d, as the angles that you see looking towards vertex A,B,C,D.
If those angles were e.g. a=80, b=70, c=110 and d=100, we would have a convex quadrilateral.
Now suppose I can get a combination of inner angles out of it that satisfies the condition, having all inner angles integer, but suppose that there is also another combination (e.g. stretching the quadrilateral in one dimensions) that preserves the angles a,b,c,d but changes the 8 inner angles, and suppose this combination is good too. Do I have to count both of these solutions or just one?
Also, what about rotations? A quadrilateral with angles a=70, b=110, c=100 and d=80 (i.e. a rotation of my example) would it be considered similar or not?
Also, another question (maybe a stupid one).
We have an error bound of 10^-9. What if I change a good combination of just about 10^-12? All other angles would change accordingly to that, and probably they would still be integer. Giving this little change another valid combination, aren't those infinite?
1.00000000001 is different from 1.00000000002 and 1.00000000003 and 1.00000000004 and so on. All of them evaluate to 1 since they are well beyond the error bound, but they are all different...
Sorry if I made stupid questions, but I really need a clarification to solve this one.
Cheers,
sfabriz

- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Clarification on p177
If the four complete angles are equal, but the 'corner angles', i.e. the angles between a side and a diagonal are different, the two figures are not similar, thus there are several nonsimilar integer-angled rectangles. Quadrilaterals which are the same up to rotations, reflections or dilations are similar, so all squares are (integer-angled and) similar. cf. also http://en.wikipedia.org/wiki/Similarity_(geometry)
The error bound refers to calculated angles, I expect you'd start out by selecting a handful of angles, these must of course be exact integers. From those angles you calculate the remaining angles. If an angle calculated (by a sensible formula and supposing a non-freakish floating point unit) is within 10-9 of an integer, it actually is an integer.
The error bound refers to calculated angles, I expect you'd start out by selecting a handful of angles, these must of course be exact integers. From those angles you calculate the remaining angles. If an angle calculated (by a sensible formula and supposing a non-freakish floating point unit) is within 10-9 of an integer, it actually is an integer.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
- sfabriz
- Posts: 175
- Joined: Thu Apr 06, 2006 12:18 am
- Location: London - UK
- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
- hk
- Administrator
- Posts: 12831
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Clarification on p177
No, do not consider degenerate cases.

War ruins the life and health of untold numbers of innocent children.
- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
Re: Clarification on p177
Hm, then I think the text needs a minor change. (add the word strictly)
A simple polygon is strictly convex if every internal angle is strictly less than 180 degrees.
A simple polygon is strictly convex if every internal angle is strictly less than 180 degrees.
- hk
- Administrator
- Posts: 12831
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Clarification on p177
But would a quadrilateral with an interior angle of 180 degrees not be a triangle instead of a quadrilateral?
Or do I miss something?
Or do I miss something?

War ruins the life and health of untold numbers of innocent children.
- sfabriz
- Posts: 175
- Joined: Thu Apr 06, 2006 12:18 am
- Location: London - UK
Re: Clarification on p177
Yes, it would be a triangle and hence it is not to be considered.
Also, you must not include in your solution angles of 0 degrees.
Cheers
sfabriz
Also, you must not include in your solution angles of 0 degrees.
Cheers
sfabriz

- sfabriz
- Posts: 175
- Joined: Thu Apr 06, 2006 12:18 am
- Location: London - UK
Re: Clarification on p177
And to respond to henk263, if you're considering a convex quadrilateral, it means that you must consider a poly with 4 sides. If one angle would be 180° then the number of sides gets lowered of one unit, so when you reach 180° you don't have a quadrilateral any more, hence you must discard that possibility.
Cheers again,
sfabriz
Cheers again,
sfabriz

- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
Re: Clarification on p177
Isn't a triangle a special quadrilateral? I solved the problem now though, so thanks for answering my questionhk wrote:But would a quadrilateral with an interior angle of 180 degrees not be a triangle instead of a quadrilateral?
Or do I miss something?
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Clarification on p177
There are definitions of polygons under which a tetragon may have a 180° angle, but as far as I know, a quadrilateral always has angles other than 180°.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
-
quilan
- Posts: 182
- Joined: Fri Aug 03, 2007 11:08 pm
Problem 177
I'm not 100% sure what the meaning of the word "similar" applies to in this problem. Would the following quadrilaterals be considered similar or not?
QUAD: 3,3,177,177 (bottom left, bottom right, upper left, upper right)
(DAC,CAB,DBA,CBD - ADB,BDC,ACD,ACB)
#1: (2,1,1,2 - 176,1,1,176)
#2: (1,2,2,1 - 175,2,2,175)
They both form the same "outer" angles for a quadrilateral, but have different inner angles.
QUAD: 3,3,177,177 (bottom left, bottom right, upper left, upper right)
(DAC,CAB,DBA,CBD - ADB,BDC,ACD,ACB)
#1: (2,1,1,2 - 176,1,1,176)
#2: (1,2,2,1 - 175,2,2,175)
They both form the same "outer" angles for a quadrilateral, but have different inner angles.
ex ~100%'er... until the gf came along.


-
quilan
- Posts: 182
- Joined: Fri Aug 03, 2007 11:08 pm
Re: Problem 177 wording
Nevermind, answer is no, they are not similar. Solved the problem though...
ex ~100%'er... until the gf came along.


-
albert
- Posts: 61
- Joined: Sat Aug 02, 2008 12:36 pm
Euler 177
Concerning similarity of rectangles in euler 177 (integer angled polygons):
Please confirm that similar is to be understood that a
rectangle with angles a b c d can be also similar to one with angles
d c b a (inversely similar).
Groetjes Albert
Please confirm that similar is to be understood that a
rectangle with angles a b c d can be also similar to one with angles
d c b a (inversely similar).
Groetjes Albert
- hk
- Administrator
- Posts: 12831
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 177
Please don't create a new topic for a problem for which a topic already exists.
Perhaps reading through previous posts will help somewhat.
Perhaps reading through previous posts will help somewhat.

War ruins the life and health of untold numbers of innocent children.
-
Jamie
- Posts: 11
- Joined: Sat Feb 28, 2009 9:40 am
Re: Problem 177
Can anyone confirm whether the answer is greater than 100,000,000? (My answer is much greater than 100,000,000 and if that is wrong then I'm probably misunderstanding the problem or something)
- jaap
- Posts: 588
- Joined: Tue Mar 25, 2008 3:57 pm
- Contact:
Re: Problem 177
That is way too large. It is less than 10^6.Jamie wrote:Can anyone confirm whether the answer is greater than 100,000,000? (My answer is much greater than 100,000,000 and if that is wrong then I'm probably misunderstanding the problem or something)
-
Jamie
- Posts: 11
- Joined: Sat Feb 28, 2009 9:40 am
Re: Problem 177
Thanks, I think I figured out a very wrong assumption, and are now getting results that seem less than 10^6.jaap wrote:That is way too large. It is less than 10^6.Jamie wrote:Can anyone confirm whether the answer is greater than 100,000,000? (My answer is much greater than 100,000,000 and if that is wrong then I'm probably misunderstanding the problem or something)
-
oleglyamin
- Posts: 39
- Joined: Mon Aug 08, 2011 8:49 am
Re: Problem 177
Can somebody confirm the total number of integer angled quadrilaterals (similar quads are counted as distinct) to be <removed by moderator>? Thank you.
EDIT: Solved. I hope it won't be considered as giving out too much - the last four digits of the total number of integer angled quadrilaterals (with similar quads counted as distinct) are indeed <....>.
EDIT: Solved. I hope it won't be considered as giving out too much - the last four digits of the total number of integer angled quadrilaterals (with similar quads counted as distinct) are indeed <....>.
-
def345
- Posts: 2
- Joined: Sat Oct 17, 2015 10:33 am
Re: Problem 177
<Edited to remove the numbers.>
I've written 2 programs months apart to solve this problem, both of these get <number deleted> as the answer but Euler doesn't agree this is the right answer. I've counted analytically the number of solutions that are Cyclic Quadrilateral (opposite angles add up to 180 degrees) and the number that are Kites, these being <number deleted> and <number deleted> respectively and these are the number my programs get (45 of these solutions being both cyclic and a kite). Can anyone else suggest anything else I can do to debug my program.
I've written 2 programs months apart to solve this problem, both of these get <number deleted> as the answer but Euler doesn't agree this is the right answer. I've counted analytically the number of solutions that are Cyclic Quadrilateral (opposite angles add up to 180 degrees) and the number that are Kites, these being <number deleted> and <number deleted> respectively and these are the number my programs get (45 of these solutions being both cyclic and a kite). Can anyone else suggest anything else I can do to debug my program.
Last edited by def345 on Sun Oct 18, 2015 11:48 am, edited 1 time in total.
