OFFSET
1,3
COMMENTS
Also number of 4-ary Lyndon words of length n with trace 2 mod 4.
FORMULA
MATHEMATICA
a[n_] := 1/(4 n) Sum[GCD[d, 4] MoebiusMu[d] 4^(n/d), {d, Divisors[n]}];
Array[a, 30] (* Andrey Zabolotskiy, Dec 19 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 18 2000
EXTENSIONS
More terms from James A. Sellers, Apr 19 2000
STATUS
approved