A358169 Row n lists the first differences plus one of the prime indices of n with 1 prepended.
1, 2, 1, 1, 3, 1, 2, 4, 1, 1, 1, 2, 1, 1, 3, 5, 1, 1, 2, 6, 1, 4, 2, 2, 1, 1, 1, 1, 7, 1, 2, 1, 8, 1, 1, 3, 2, 3, 1, 5, 9, 1, 1, 1, 2, 3, 1, 1, 6, 2, 1, 1, 1, 1, 4, 10, 1, 2, 2, 11, 1, 1, 1, 1, 1, 2, 4, 1, 7, 3, 2, 1, 1, 2, 1, 12, 1, 8, 2, 5, 1, 1, 1, 3
Offset: 2
Examples
Triangle begins: 2: 1 3: 2 4: 1 1 5: 3 6: 1 2 7: 4 8: 1 1 1 9: 2 1 10: 1 3 11: 5 12: 1 1 2 13: 6 14: 1 4 15: 2 2 16: 1 1 1 1 17: 7 18: 1 2 1 19: 8 20: 1 1 3
Links
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Table[Differences[Prepend[primeMS[n],1]]+1,{n,30}]
Comments