OFFSET
1,2
COMMENTS
a(n) is the number of ways to draw n segments of equal length so that each vertex of a regular 2n-gon is an endpoint of one of the segments. It is not difficult to prove that the Maple program given below computes the correct value. Note that a(n) = n when n is an odd prime.
Finding the value when n = 12 was a problem in the 2025 American Invitational Mathematics Examination (AIME), a part of the American Mathematics Competitions run by the Mathematical Association of America. A solution is presented in the Art of Problem Solving website.
LINKS
Yifan Xie, Table of n, a(n) for n = 1..5000
Art of Problem Solving, 2025 AIME II Problems/Problem 11.
FORMULA
a(n) = 1 + Sum_{i=1..n-1} [2*n/GCD(2*n,i) mod 2 == 0] * 2^GCD(2*n,i), where [ ] denotes the Iverson bracket.
MAPLE
a := 1;
for i from 1 to n - 1 do
if (2*n/gcd(2*n, i)) mod 2 = 0 then a := a + 2^gcd(2*n, i); end if;
end do;
MATHEMATICA
a[n_]:=1+Sum[Boole[Mod[2n/GCD[2n, i], 2]==0]2^GCD[2n, i], {i, n-1}]; Array[a, 50] (* Stefano Spezia, Feb 24 2025 *)
PROG
(PARI) a(n)={my(s=1); for(i=1, n-1, my(d=gcd(2*n, i)); if((2*n/d)%2 == 0, s += 2^d)); s} \\ Yifan Xie, Apr 13 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Jerrold Grossman, Feb 16 2025
STATUS
approved
