OFFSET
1
COMMENTS
See discussion at A209635.
LINKS
FORMULA
a(n) = a(2n) = a(A000265(n)).
a(n) >= A353627(n).
Multiplicative with a(p^e) = A000035(((p^(e+1)-1)(p^(e+2)-1)) / ((p-1)(p^2-1))). - Antti Karttunen, Dec 20 2022
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Pi^2/12 = 0.822467... (A072691). - Amiram Eldar, Oct 23 2023
MATHEMATICA
f[p_, e_] := Mod[Product[(p^(e + k) - 1)/(p^k - 1), {k, 1, 2}], 2]; a[1] = 1; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* Amiram Eldar, Oct 23 2023 *)
PROG
CROSSREFS
Characteristic function of A353511.
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, May 03 2022
EXTENSIONS
Keyword:mult added by Antti Karttunen, Dec 20 2022
STATUS
approved