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

a(n) = 0 if s(n) is nonprime, a(n) = 1 if s(n) is prime, where s = A005117.
0

%I #6 Dec 12 2024 11:09:09

%S 0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,0,0,0,1,0,0,1,0,1,0,1,0,1,0,

%T 0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,1,0,1,0,0,1,1,

%U 0,0,1,0,0,0,0

%N a(n) = 0 if s(n) is nonprime, a(n) = 1 if s(n) is prime, where s = A005117.

%C Characteristic function of prime squarefree numbers.

%C First differences of pi(s(n)) = A000720(A005117(n)).

%H Michael De Vlieger, <a href="/A378901/b378901.txt">Table of n, a(n) for n = 1..10000</a>

%F a(k) = 1 for k in A071403.

%t Map[Boole[PrimeQ[#]] &, Select[Range[120], SquareFreeQ] ]

%Y Cf. A000040, A000720, A005117, A071403.

%K nonn,easy,new

%O 1

%A _Michael De Vlieger_, Dec 12 2024