login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A353671
a(n) = 1 if n is even and the odd part of n is a prime, otherwise 0.
2
0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 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, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0
OFFSET
1
FORMULA
a(n) = A059841(n) * A353670(n).
a(n) = A353670(n) - (A000035(n)*A010051(n)).
PROG
(PARI) A353671(n) = (!(n%2)&&isprime(n>>valuation(n, 2)));
CROSSREFS
Characteristic function of A100368, numbers of the form 2^k * p where k > 0 and p is an odd prime.
Sequence in context: A354353 A353669 A363915 * A353672 A323170 A379118
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 04 2022
STATUS
approved