OFFSET
0,4
COMMENTS
The number of length 2n balanced binary Lyndon words which are equivalent to their reversed complement is A000740(n) and the number which are equivalent to their reverse, complement and reversed complement is A045683(n). - Andrew Howroyd, Sep 28 2017
LINKS
FORMULA
MATHEMATICA
a740[n_] := DivisorSum[n, MoebiusMu[n/#]*2^(#-1)&];
a45674[0] = 1; a45674[n_] := Module[{t = 0, r = n}, While[EvenQ[r], r = Quotient[r, 2]; t += 2^(r-1)]; t + 2^Quotient[r, 2]];
a45683[0] = 1; a45683[n_] := DivisorSum[n, MoebiusMu[n/#]*a45674[#]&];
a[0] = 0; a[n_] := a740[n] - a45683[n];
Table[a[n], {n, 0, 32}] (* Jean-François Alcover, Sep 30 2017, after Andrew Howroyd *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Incorrect formulas and comments removed by Andrew Howroyd, Sep 28 2017
STATUS
approved