OFFSET
1
COMMENTS
a(n) = 1 iff n is of the form 2^i * 3^j * k, with k in A007310 [i.e., gcd(k, 6) = 1], and i == j (mod 3).
LINKS
FORMULA
a(n) = [A276085(n) == 0 (mod 3)], where [ ] is the Iverson bracket.
Sum_{k=1..n} a(k) ~ (43/91) * n. - Amiram Eldar, May 29 2024
MATHEMATICA
a[n_] := If[Divisible[Differences[IntegerExponent[n, {2, 3}]][[1]], 3], 1, 0]; Array[a, 100] (* Amiram Eldar, May 29 2024 *)
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, May 26 2024
STATUS
approved