login
A340371
a(n) = 1 if the odd part of n is noncomposite, 0 otherwise.
3
1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0
OFFSET
1
COMMENTS
a(n) = 1 if n is of the form 2^i * p^j, for some odd prime p, with i >= 0, 0 <= j <= 1, and 0 otherwise.
FORMULA
a(n) = A080339(A000265(n)).
For n > 1, a(n) = abs(A304438(n)).
MATHEMATICA
A340371[n_] := If[# == 1, 1, Boole[PrimeQ[#]]] & [n/2^IntegerExponent[n, 2]];
Array[A340371, 100] (* Paolo Xausa, Nov 01 2024 *)
PROG
(PARI) A340371(n) = (2>bigomega(n>>valuation(n, 2)));
CROSSREFS
Characteristic function of A093641.
After the initial term, the absolute values of A304438.
Cf. also A340370, A340373.
Differs from A340374 for the first time at n=561, where a(561) = 0.
Sequence in context: A334460 A071023 A166280 * A340374 A070887 A209635
KEYWORD
nonn,changed
AUTHOR
Antti Karttunen, Jan 06 2021
STATUS
approved