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.
LINKS
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
KEYWORD
nonn,changed
AUTHOR
Antti Karttunen, Jan 06 2021
STATUS
approved