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