A359675 Positions of first appearances in the sequence of zero-based weighted sums of prime indices (A359674).
1, 4, 6, 8, 12, 14, 16, 20, 24, 30, 32, 36, 40, 48, 52, 56, 72, 80, 92, 96, 100, 104, 112, 124, 136, 148, 152, 172, 176, 184, 188, 212, 214, 236, 244, 248, 262, 268, 272, 284, 292, 304, 316, 328, 332, 346, 356, 376, 386, 388, 398, 404, 412, 428, 436, 452, 458
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 1: {} 4: {1,1} 6: {1,2} 8: {1,1,1} 12: {1,1,2} 14: {1,4} 16: {1,1,1,1} 20: {1,1,3} 24: {1,1,1,2} 30: {1,2,3} 32: {1,1,1,1,1} 36: {1,1,2,2} 40: {1,1,1,3} 48: {1,1,1,1,2}
Crossrefs
Programs
-
Mathematica
nn=100; primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; wts[y_]:=Sum[(i-1)*y[[i]],{i,Length[y]}]; seq=Table[wts[primeMS[n]],{n,1,nn}]; Select[Range[nn],FreeQ[seq[[Range[#-1]]],seq[[#]]]&]
Comments