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

A353569
a(n) = 1 if n is an odd number divisible by a square > 1, otherwise 0.
4
0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1
OFFSET
1
FORMULA
a(n) = A000035(n) * A107078(n).
a(n) = A000035(n) - A323239(n).
a(n) <= A353626(n).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1/2 - 4/Pi^2 = 0.094715... . - Amiram Eldar, Jul 24 2022
MATHEMATICA
a[n_] := If[OddQ[n] && !SquareFreeQ[n], 1, 0]; Array[a, 100] (* Amiram Eldar, Jul 24 2022 *)
PROG
(PARI) A353569(n) = ((n%2)&&!issquarefree(n));
CROSSREFS
Characteristic function of A053850.
Sequence in context: A037816 A297038 A353639 * A353477 A044939 A373973
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 03 2022
EXTENSIONS
Definition clarified by Antti Karttunen, Feb 19 2023
STATUS
approved