![]() |
|
|
#12 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Would the solution not come from how to place n*n ants onto the number of crossable borders ? It appears the number of crossable borders is
edit: I realize now that no it's not that simple because you can't have 2 ants going in any direction from one box, so an amount of borders greater than 2 can't have ants on all of them. just realized the multiplier is 4 not 2. so the crossable borders is : Last fiddled with by science_man_88 on 2012-09-11 at 21:54 |
|
|
|
|
|
#13 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Quote:
Last fiddled with by Batalov on 2013-11-16 at 19:41 Reason: server time is an obscure rendez-vous |
|
|
|
|
|
|
#14 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
Ouch!
|
|
|
|
|
|
#15 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Project Euler is now restored (almost) fully.
|
|
|
|
|
|
#17 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
Quote:
We know the sum of the interior angles. Am thinking that it may be possible to work out a possible set of coordinates for an odd number of sides by dividing up the angles according to the length of the opposite side. Not certain this would be maximal or even whether the area would change based upon the angles. Not sure how to extend this to even number of sides. Found this which answers some of my questions. It looks like the formula for the area of a cyclic polygon is \[ \prod_{i=1}^{n}\sqrt{(\sum_{j=1}^{n}s_j/2) - s_i}\] The order of the sides doesn't matter. Next problem is finding the maximal partition into side lengths. |
|
|
|
|
|
|
#18 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
10110111110002 Posts |
Quote:
|
|
|
|
|
|
|
#19 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
why not something along the lines of:
where R is the radius to a flat side and L is the length of that side this generates: N/2*R*L for a regular N-gon edit: okay technically this doesn't tell you the maximum but you have to start somewhere to get what's needed. these formulae can give area. Last fiddled with by science_man_88 on 2016-06-13 at 13:06 |
|
|
|
|
|
#20 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
There is a general formula, but it only happens to lead to the semiperimeter formula for n=3 and n=4 only.
Interestingly, there was a researcher who produced the explicit formulae for n up to 8, but they are not useful for this PE problem. Even more intriguingly, the formulae come in pairs (odd and next even n), so the fact that cases 3<=n<=4 look similar is not coincidental! The initial realization about the polygons being [B]cyclic[/B] is a very good start. |
|
|
|
|
|
#21 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
10110111110002 Posts |
Needed to use bisection rather than Newton's method as it would sometimes diverge.
Having trouble with the polygon with sides of length [3,1,1,1,1]. There doesn't seem to be a valid radius for this polygon. [2,1,1,1] is a bit of a nuisance as well due to it having a radius of 1 which is the minimum possible radius. I am beginning to think that I might need restrictions on which polygons are possible. However, there needs to be a solution for [3,1,1,1,1] based upon the value for S(5). I suspect that it must be impossible for the points to all be on the circle but a maximal polygon is possible. Not a clue how to find the area of that maximal polygon currently. |
|
|
|
|
|
#22 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Project Euler 486 | lavalamp | Puzzles | 8 | 2015-02-04 14:28 |
| Project Euler #372 | lavalamp | Puzzles | 165 | 2012-05-24 16:40 |
| Euler (6,2,5) details. | Death | Math | 10 | 2011-08-03 13:49 |
| Project Euler | Mini-Geek | Lounge | 2 | 2009-10-23 17:19 |
| Bernoulli and Euler numbers (Sam Wagstaff project) | fivemack | Factoring | 4 | 2008-02-24 00:39 |