OFFSET
1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
FORMULA
Multiplicative with a(p^e) = 1 if e is a multiple of 3, or p > 2, otherwise 0.
a(n) = [A007814(n) == 0 (mod 3)], where [ ] is the Iverson bracket.
a(n) = [A191255(n) = 0 or 3].
Sum_{k=1..n} a(k) ~ (4/7) * n. - Amiram Eldar, May 31 2024
MATHEMATICA
a[n_] := If[Divisible[IntegerExponent[n, 2], 3], 1, 0]; Array[a, 100] (* Amiram Eldar, May 31 2024 *)
PROG
(PARI) A373157(n) = !(valuation(n, 2)%3);
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
Antti Karttunen, May 28 2024
STATUS
approved