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!)
A353519 a(n) = 1 if n has an odd number of square divisors, otherwise 0. 3
1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
FORMULA
Multiplicative with a(p^e) = 1 if e == {0, 1} mod 4, and 0 if e == {2, 3} mod 4.
a(n) = A000035(A046951(n)) = abs(A219009(n)).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Pi^2/15 (A182448). - Amiram Eldar, Jul 23 2022
Dirichlet g.f.: zeta(s)*zeta(4*s)/zeta(2*s). - Amiram Eldar, Jan 01 2023
MATHEMATICA
f[p_, e_] := 1 + Floor[e/2]; sqdivnum[1] = 1; sqdivnum[n_] := Times @@ f @@@ FactorInteger[n]; a[n_] := If[OddQ[sqdivnum[n]], 1, 0]; Array[a, 100] (* Amiram Eldar, Jul 23 2022 *)
PROG
(PARI) A353519(n) = { my(f=factor(n)); prod(k=1, #f~, ((f[k, 2]%4)<2)); };
(PARI) A353519(n) = (sumdiv(n, d, issquare(d))%2); \\ after "isok" program in A252895
CROSSREFS
Characteristic function of A252895. Parity of terms of A046951.
Absolute values of A219009.
Sequence in context: A060038 A197774 A219009 * A267708 A167021 A267687
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, May 03 2022
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 April 23 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)