OFFSET
0,7
COMMENTS
The number of length 2n balanced binary Lyndon words which are equivalent to their complement is A000048(n) and the number which are equivalent to their reverse, complement and reversed complement is A045683(n). - Andrew Howroyd, Sep 28 2017
FORMULA
MATHEMATICA
a48[n_] := Total[MoebiusMu[#]*2^(n/#)& /@ Select[Divisors[n], OddQ]]/(2n);
b[n_] := Module[{t = 0, r = n}, While[EvenQ[r], r = Quotient[r, 2]; t += 2^(r - 1)]; t + 2^Quotient[r, 2]];
a45683[n_] := DivisorSum[n, MoebiusMu[n/#]*b[#]&];
a[n_] := If[n == 0, 0, a48[n] - a45683[n]];
a /@ Range[0, 36] (* Jean-François Alcover, Sep 23 2019, after Andrew Howroyd *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved