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

A353474
a(n) = 1 if n is a number of the form p^2 * q, where p and q are primes with p < q, otherwise 0.
5
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0
OFFSET
1
COMMENTS
a(n) = 1 if n is not a cube of prime and A052126(n) is a square of prime, otherwise 0.
FORMULA
a(n) = A143731(n) * A302048(A052126(n)).
a(n) = A353472(n) - A353473(n).
PROG
(PARI)
A052126(n) = if(1==n, n, (n/vecmax(factor(n)[, 1])));
A353474(n) = (!isprimepower(n) && 2==isprimepower(A052126(n)));
CROSSREFS
Characteristic function of A096156.
Sequence in context: A354983 A179801 A374093 * A065202 A374100 A323547
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 21 2022
STATUS
approved