A356237 Heinz numbers of integer partitions with a neighborless singleton.
2, 3, 5, 7, 10, 11, 13, 14, 17, 19, 20, 21, 22, 23, 26, 28, 29, 31, 33, 34, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 73, 74, 76, 78, 79, 80, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 2: {1} 3: {2} 5: {3} 7: {4} 10: {1,3} 11: {5} 13: {6} 14: {1,4} 17: {7} 19: {8} 20: {1,1,3} 21: {2,4} 22: {1,5} 23: {9} 26: {1,6} 28: {1,1,4}
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Select[Range[100],Function[ptn,Or@@Table[Count[ptn,x]==1&&!MemberQ[ptn,x-1]&&!MemberQ[ptn,x+1],{x,Union[ptn]}]]@*primeMS]
Comments