Teaser 2917: Polygoland
From The Sunday Times, 19th August 2018 [link] [link]
We’ve all heard of Heligoland but George and Martha are on holiday in Polygoland. This is an island and when it was first inhabited, the authorities created as many national parks as possible subject to the restriction that each such park will be a regular polygon with the angle between each side being an integral number of degrees, and all the parks have different numbers of sides. Walking along the border between two such parks, Martha commented that the angle (A) of one of them was an exact multiple of the number of sides (S) in the other. George mentioned that the multiple was equal to the number of parks on the island.
What are A and S?
[teaser2917]
Jim Randell 3:40 pm on 1 May 2019 Permalink |
For a regular n-gon, the internal angles are (180 − 360 / n) degrees.
So we can determine the number of possible n-gons with integer angles t from the number of divisors of 360 (greater than 2).
There are 22 possible polygons, so t = 22
So we need to find a solution to the equation:
where n is a divisor of 360 (greater than 2).
There are only a few values of m to consider and only one of them gives a viable value for n.
Run: [ @repl.it ]
from enigma import (divisors, irange, div, printf) # find divisors of 360 where n > 2 ns = list(n for n in divisors(360) if n > 2) t = len(ns) printf("[{t} different polygons]") # now consider possible values of m for m in irange(1, 180 // t): n = div(360, 180 - t * m) if n is None or n == m or n not in ns: continue printf("A={A} degrees, S={m} [m={m} n={n}]", A=(180 - 360 // n))Solution: A = 176°, S = 8.
The solution to the equation is m = 8, which gives a value of n = 90.
The angle 176° is 4° off a straight line, so if we walk along the perimeter each side turns us by 4°. After 90 sides we have turned through 360°.
176 = 22 × 8, and 8 is a divisor of 360, so there will be an octagonal park (with interior angles of 180° − 45° = 135°).
LikeLike