OFFSET
1,1
COMMENTS
Gauss shows a regular n-gon can be constructed (with Euclidean tools) iff n is a product of 2^k*(distinct Fermat primes).
FORMULA
n^3 - n = (n-1)*n*(n+1).
EXAMPLE
a(1)=2 because 2^3 - 2 = 6 = 1*2*3, and a regular hexagon can be constructed by ruler and compass.
PROG
(PARI) for(n=1, 10^4, nn= n^3-n; my(t=eulerphi(nn)); if(t/2^valuation(t, 2)==1, print1(n, ", "))); \\ after PARI in A003401; Michel Marcus, Oct 11 2017
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Donald S. McDonald, May 02 2006
STATUS
approved