OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..335
F. Ruskey, Necklaces, Lyndon words, De Bruijn sequences, etc. [Cached copy, with permission, pdf format only]
Eric Weisstein's World of Mathematics, Necklace
Wikipedia, Necklace (combinatorics)
FORMULA
a(n) = 1/(n^2) * Sum_{d|n} C(n^2/d,n/d) * A000010(d) for n>0, a(0) = 1.
a(n) ~ exp(n-1/2) * n^(n-5/2) / sqrt(2*Pi). - Vaclav Kotesovec, Aug 22 2015
MAPLE
with(numtheory):
a:= n-> `if`(n=0, 1, add(binomial(n^2/d, n/d)
*phi(d), d=divisors(n))/n^2):
seq(a(n), n=0..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 21 2015
STATUS
approved