A305504 Heinz numbers of integer partitions whose distinct parts plus 1 are connected.
1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 16, 17, 19, 20, 22, 23, 25, 27, 29, 31, 32, 33, 34, 37, 40, 41, 43, 44, 46, 47, 49, 50, 53, 55, 57, 59, 61, 62, 64, 66, 67, 68, 71, 73, 79, 80, 81, 82, 83, 85, 88, 89, 92, 93, 94, 97, 99, 100, 101, 103, 107, 109, 110, 113, 115
Offset: 1
Keywords
Examples
The sequence of entries together with the corresponding twice-prime-factored multiset partitions (see A275024) begins: 1: {} 2: {{1}} 3: {{2}} 4: {{1},{1}} 5: {{1,1}} 7: {{3}} 8: {{1},{1},{1}} 9: {{2},{2}} 10: {{1},{1,1}} 11: {{1,2}} 13: {{4}} 16: {{1},{1},{1},{1}} 17: {{1,1,1}} 19: {{2,2}} 20: {{1},{1},{1,1}} 22: {{1},{1,2}}
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n===1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; zsm[s_]:=With[{c=Select[Tuples[Range[Length[s]],2],And[Less@@#,GCD@@s[[#]]]>1&]},If[c=={},s,zsm[Union[Append[Delete[s,List/@c[[1]]],LCM@@s[[c[[1]]]]]]]]]; Select[Range[300],Length[zsm[primeMS[#]+1]]<=1&]
Comments