A359754 Positions of first appearances in the sequence of weighted sums of reversed prime indices (A318283).
1, 2, 3, 4, 6, 8, 10, 12, 16, 18, 19, 24, 27, 32, 36, 43, 48, 59, 61, 64, 67, 71, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 1: {} 2: {1} 3: {2} 4: {1,1} 6: {1,2} 8: {1,1,1} 10: {1,3} 12: {1,1,2} 16: {1,1,1,1} 18: {1,2,2} 19: {8} 24: {1,1,1,2} 27: {2,2,2} 32: {1,1,1,1,1} 36: {1,1,2,2} 43: {14} 48: {1,1,1,1,2}
Programs
-
Mathematica
nn=100; primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; ots[y_]:=Sum[i*y[[i]],{i,Length[y]}]; seq=Table[ots[Reverse[primeMS[n]]],{n,1,nn}]; Select[Range[nn],FreeQ[seq[[Range[#-1]]],seq[[#]]]&]
Comments