OFFSET
0,2
REFERENCES
M. Lothaire, Combinatorics on words, Cambridge mathematical library, 1983, p. 126 (definition of shuffle algebra).
FORMULA
For n >= 2, a(n) = 6^n - (1/n) * Sum_{d|n} A008683(n/d) * 6^d. - Sean A. Irvine, Aug 28 2022
a(n) = 6^n - A032164(n) for n >= 2. - Amiram Eldar, Aug 13 2023
MATHEMATICA
a[n_] := 6^n - DivisorSum[n, MoebiusMu[n/#] * 6^# &] / n; a[0] = 1; a[1] = 6; Array[a, 23, 0] (* Amiram Eldar, Aug 13 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Claude Lenormand (claude.lenormand(AT)free.fr), Jan 04 2001
EXTENSIONS
More terms from Sean A. Irvine, Aug 28 2022
STATUS
approved