A345962 Numbers whose prime indices have alternating sum -2.
10, 21, 40, 55, 84, 90, 91, 160, 187, 189, 210, 220, 247, 250, 336, 360, 364, 391, 462, 490, 495, 525, 551, 640, 713, 748, 756, 810, 819, 840, 858, 880, 988, 1000, 1029, 1073, 1155, 1210, 1271, 1326, 1344, 1375, 1440, 1456, 1564, 1591, 1683, 1690, 1701, 1848
Offset: 1
Keywords
Examples
The initial terms and their prime indices: 10: {1,3} 21: {2,4} 40: {1,1,1,3} 55: {3,5} 84: {1,1,2,4} 90: {1,2,2,3} 91: {4,6} 160: {1,1,1,1,1,3} 187: {5,7} 189: {2,2,2,4} 210: {1,2,3,4} 220: {1,1,3,5} 247: {6,8} 250: {1,3,3,3} 336: {1,1,1,1,2,4} 360: {1,1,1,2,2,3}
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; ats[y_]:=Sum[(-1)^(i-1)*y[[i]],{i,Length[y]}]; Select[Range[0,100],ats[primeMS[#]]==-2&]
Comments