A356736 Heinz numbers of integer partitions with no neighborless parts.
1, 6, 12, 15, 18, 24, 30, 35, 36, 45, 48, 54, 60, 72, 75, 77, 90, 96, 105, 108, 120, 135, 143, 144, 150, 162, 175, 180, 192, 210, 216, 221, 225, 240, 245, 270, 288, 300, 315, 323, 324, 360, 375, 384, 385, 405, 420, 432, 437, 450, 462, 480, 486, 525, 539, 540
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 1: {} 6: {1,2} 12: {1,1,2} 15: {2,3} 18: {1,2,2} 24: {1,1,1,2} 30: {1,2,3} 35: {3,4} 36: {1,1,2,2} 45: {2,2,3} 48: {1,1,1,1,2} 54: {1,2,2,2} 60: {1,1,2,3} 72: {1,1,1,2,2} 75: {2,3,3} 77: {4,5} 90: {1,2,2,3} 96: {1,1,1,1,1,2}
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[!MemberQ[ptn,x-1]&&!MemberQ[ptn,x+1],{x,Union[ptn]}]]@*primeMS]
Comments