OFFSET
0
LINKS
FORMULA
For all n >= 0, a(9*n) = 1, a(3*(3n+1)) = a(3*(3n+2)) = 0, a(8*n) = a(n), a(8n+4) = a(4n+2) = 0, and a(2n+1) = 1 when A007949(2n+1) != 1.
a(n) = [A007949(n) > 1] + [A007949(n) = 0]*[A007814(n) == 0 (mod 3)], where [ ] is the Iverson bracket.
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 31/63. - Amiram Eldar, Jun 28 2024
MATHEMATICA
a[n_] := If[Divisible[n, 9] || (!Divisible[n, 3] && Divisible[IntegerExponent[n, 2], 3]), 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Jun 28 2024 *)
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Jun 26 2024
STATUS
approved