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”).

A353672
a(n) = 1 if n is an even number with an even number of distinct prime factors, otherwise 0.
4
0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0
OFFSET
1
FORMULA
a(n) = [n is even] * [A001221(n) is even], where [ ] is the Iverson bracket.
a(n) = A059841(n) * (1-A092248(n)).
a(n) = A059841(n) - A353674(n).
PROG
(PARI) A353672(n) = (!(n%2) && !(omega(n)%2));
CROSSREFS
Characteristic function of A098902.
Cf. also A353555.
Sequence in context: A353669 A363915 A353671 * A323170 A379118 A215480
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 03 2022
STATUS
approved