OFFSET
1,3
COMMENTS
Primitive parts of Jacobsthal numbers A001045.
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
Eric Weisstein's World of Mathematics, Sylvester Cyclotomic Number.
FORMULA
a(n)=product{k=1..n-1, if(gcd(n, k)=1, 2+exp(2*pi*I*k/n), 1)}, I=sqrt(-1)
a(n) = (-1)^phi(n)*cyclotomic(n, -2) for n >= 2 (for n = 1 this would be 3), with phi(n) = A000010(n). - Wolfdieter Lang, Jan 19 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 15 2005
STATUS
approved