OFFSET
0,2
COMMENTS
Dimensions of homogeneous subspaces of shuffle algebra over 8-letter alphabet (see A058766 for 2-letter case).
REFERENCES
M. Lothaire, Combinatorics on words, Cambridge mathematical library, 1983, p. 126 (definition of shuffle algebra).
MATHEMATICA
a[n_] := 8^n - DivisorSum[n, MoebiusMu[n/#] * 8^# &] / n; a[0] = 1; a[1] = 8; Array[a, 22, 0] (* Amiram Eldar, Aug 13 2023 *)
PROG
(PARI) a(n) = if (n<=1, 8^n, 8^n - sumdiv(n, d, moebius(d)*8^(n/d))/n); \\ Michel Marcus, Oct 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Claude Lenormand (claude.lenormand(AT)free.fr), Jan 04 2001
EXTENSIONS
Better description from Sharon Sela (sharonsela(AT)hotmail.com), Feb 19 2002
More terms from Michel Marcus, Oct 30 2017
STATUS
approved