A355536 Irregular triangle read by rows where row n lists the differences between adjacent prime indices of n; if n is prime, row n is empty.
0, 1, 0, 0, 0, 2, 0, 1, 3, 1, 0, 0, 0, 1, 0, 0, 2, 2, 4, 0, 0, 1, 0, 5, 0, 0, 0, 3, 1, 1, 0, 0, 0, 0, 3, 6, 1, 0, 1, 0, 7, 4, 0, 0, 2, 1, 2, 0, 4, 0, 1, 8, 0, 0, 0, 1, 0, 2, 0, 5, 0, 5, 1, 0, 0, 2, 0, 0, 3, 6, 9, 0, 1, 1, 10, 0, 2, 0, 0, 0, 0, 0, 3, 1, 3, 0, 6
Offset: 2
Examples
Triangle begins (showing n, prime indices, differences*): 2: (1) . 3: (2) . 4: (1,1) 0 5: (3) . 6: (1,2) 1 7: (4) . 8: (1,1,1) 0 0 9: (2,2) 0 10: (1,3) 2 11: (5) . 12: (1,1,2) 0 1 13: (6) . 14: (1,4) 3 15: (2,3) 1 16: (1,1,1,1) 0 0 0
Links
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Table[Differences[primeMS[n]],{n,2,100}]
Comments