The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A359474 a(n) = 1 if the product of exponents in the prime factorization of n is 2, otherwise 0. 6
0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
a(n) = 1 if there is exactly one exponent in the prime factorization of n that is larger than 1, and that exponent is 2, otherwise 0.
LINKS
FORMULA
a(n) = [A005361(n) == 2], where [ ] is the Iverson bracket.
a(n) = [A000688(n) == 2].
a(n) = [A046660(n) == 1].
a(n) = A359471(n) - A008966(n).
a(n) = A302048(n) + A359475(n).
a(n) = A359429(n) * A359466(n).
Sum_{k=1..n} a(k) ~ c * n, where c = A271971. - Amiram Eldar, Jan 05 2023
MATHEMATICA
a[n_] := If[PrimeOmega[n] - PrimeNu[n] == 1, 1, 0]; Array[a, 100] (* Amiram Eldar, Jan 05 2023 *)
PROG
(PARI) A359474(n) = (2==factorback(factor(n)[, 2])); \\ From the "is" function given in A048109
CROSSREFS
Characteristic function of A060687.
Sequence in context: A295308 A284954 A221151 * A359429 A353470 A342753
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 04 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 14 21:33 EDT 2024. Contains 372533 sequences. (Running on oeis4.)