OFFSET
1,3
FORMULA
a(p) = (2^(p-1)-1)/p + 2^((p-1)/2) for odd prime p. - Andrew Howroyd, Mar 22 2023
EXAMPLE
For n=3, a(3) is computed as follows: The base angle is Pi/3 (60 degrees). Thus any internal angle can only be either Pi/3 or 2*Pi/3. Call an interior angle with Pi/3 a "1" and with 2*Pi/3 a "2". Since all external angles will add to 2*Pi, we know that the only possible sequences (ignoring rotation and reflection) are {{1, 1, 1}, {1, 1, 2, 2}, {1, 2, 1, 2}, {1, 2, 2, 2, 2}, {2, 2, 2, 2, 2, 2}}. However, neither {1, 1, 2, 2} nor {1, 2, 2, 2, 2} forms a closed polygon. Thus the final set is {{1, 1, 1}, {1, 2, 1, 2}, {2, 2, 2, 2, 2, 2}}, which gives a(3) = 3.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Roman Mecholsky, Mar 18 2023
EXTENSIONS
a(7) and a(9) corrected and a(11)-a(20) from Andrew Howroyd, Mar 22 2023
STATUS
approved