A379310 Number of nonsquarefree prime indices of n.
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0
Offset: 1
Keywords
Examples
The prime indices of 39 are {2,6}, so a(39) = 0. The prime indices of 70 are {1,3,4}, so a(70) = 1. The prime indices of 98 are {1,4,4}, so a(98) = 2. The prime indices of 294 are {1,2,4,4}, a(294) = 2. The prime indices of 1911 are {2,4,4,6}, so a(1911) = 2. The prime indices of 2548 are {1,1,4,4,6}, so a(2548) = 2.
Crossrefs
Programs
-
Mathematica
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Table[Length[Select[prix[n],Not@*SquareFreeQ]],{n,100}]
Comments