OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 3, -2, -4, 1, 4, -1, -5, 2, 7, -1, -6, 0, 4, 0, -6, -1, 7, 2, -5, -1, 4, 1, -4, -2, 3, 1, -1).
FORMULA
G.f.: 1 + x + x/(1-x) + 1/2*x^2*(1/(1-x)^2 - 1/(1-x^2)) + 1/3*x^3*(1/(1-x)^3 - 1/(1-x^3)) + 1/4*x^4*(1/(1-x)^4 - 1/(1-x^2)^2) + 1/5*x^5*(1/(1-x)^5 - 1/(1-x^5)) + 1/6*x^6*(1/(1-x)^6 - 1/(1-x^2)^3 - 1/(1-x^3)^2 + 1/(1-x^6)) + 1/7*x^7*(1/(1-x)^7 - 1/(1-x^7)) + 1/8*x^8*(1/(1-x)^8 - 1/(1-x^2)^4).
MATHEMATICA
(* The g.f. for the number of aperiodic necklaces (Lyndon words) with k<=m black beads and n-k white beads. Here we have the case m=8 *)
gf[x_, m_]:=Sum[x^i/i Plus@@(MoebiusMu[#](1-x^#)^(-(i/#))&/@Divisors[i]), {i, 1, m}]+x+1
CROSSREFS
The Mathematica section of A032168 gives the g.f. for k=m black beads and n-k white beads.
KEYWORD
nonn,easy
AUTHOR
Herbert Kociemba, Oct 24 2016
STATUS
approved