login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A373136
a(n) = 1 if n is of the form 2^i * 3^j * k, i+j even, gcd(k,6)=1, otherwise 0.
2
1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1
OFFSET
1
FORMULA
a(n) = [A007814(n)+A007949(n) == 0 (mod 2)], where [ ] is the Iverson bracket.
Sum_{k=1..n} a(k) ~ (7/12) * n. - Amiram Eldar, May 29 2024
MATHEMATICA
a[n_] := If[EvenQ[Plus @@ IntegerExponent[n, {2, 3}]], 1, 0]; Array[a, 100] (* Amiram Eldar, May 29 2024 *)
PROG
(PARI) A373136(n) = !((valuation(n, 2)+valuation(n, 3))%2); \\ After function "is" in A036668
CROSSREFS
Characteristic function of Hati numbers, A036668.
Sequence in context: A090172 A284369 A194661 * A285427 A285621 A204435
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, May 28 2024
STATUS
approved