A326157 Squarefree numbers whose product of prime indices is twice their sum of prime indices.
65, 154, 190
Offset: 1
Examples
The sequence of terms together with their prime indices starts: 65: {3,6} 154: {1,4,5} 190: {1,3,8}
Crossrefs
Programs
-
Maple
q:= n-> (l-> andmap(i-> i[2]=1, l) and (h-> mul(i, i=h)=2*add(i, i=h))(map(i-> numtheory[pi](i[1]), l)))(ifactors(n)[2]): select(q, [$1..1000])[]; # Alois P. Heinz, Sep 12 2019
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Select[Range[10000],SquareFreeQ[#]&&SameQ[Times@@primeMS[#],2*Plus@@primeMS[#]]&]
Comments