OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..50
FORMULA
a(n) = Sum_{d|5} phi(5/d)*(n*d)!/(d!^n*n*5) if n>0 and a(0) = 1.
EXAMPLE
a(0) = 1: the empty necklace.
a(1) = 1: {00000}.
a(2) = 26: {0000011111, ..., 0101010101}.
MAPLE
with(numtheory);
a:= n-> `if`(n=0, 1, add(phi(5/d) *(n*d)!/(d!^n *5*n), d={1, 5})):
seq(a(n), n=0..12);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 24 2012
STATUS
approved