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!)
A359467 a(n) = (A166486(n)+A353627(n)) mod 2. 4
0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
FORMULA
a(n) = (A166486(n)+A355689(n)) mod 2 = (A353627(n)+A358839(n)) mod 2.
a(n) = A342419(n) mod 2.
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 3/4 - 4/Pi^2 = 0.344715... . - Amiram Eldar, Jan 24 2023
MATHEMATICA
a[n_] := Module[{e = IntegerExponent[n, 2], o}, o = n/2^e; sqf = SquareFreeQ[o]; If[(e > 1 && sqf) || (e < 2 && ! sqf), 1, 0]]; Array[a, 100] (* Amiram Eldar, Jan 24 2023 *)
PROG
(PARI) A359467(n) = (((!(n%4))&&issquarefree(n>>valuation(n, 2))) + ((n%4)&&!issquarefree(n)));
(PARI)
A166486(n) = !!(n%4);
A355689(n) = { my(f = factor(n)); prod(k=1, #f~, if(2==f[k, 1], (-1)^f[k, 2], -(1==f[k, 2]))); };
A359467(n) = ((A166486(n)+A355689(n))%2);
CROSSREFS
Characteristic function of A359468, numbers that are either multiples of 4 with their odd part squarefree, or that are not multiples of 4 and not squarefree.
Differs from A359466 for the first time at n=225, where a(225) = 1, while A359466(225) = 0.
Differs from A359469 [= A353459(n) mod 2] for the first time at n=100. Here a(100) = 0.
Sequence in context: A345951 A345952 A359466 * A359469 A107078 A341613
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 02 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 12 22:24 EDT 2024. Contains 372496 sequences. (Running on oeis4.)