OFFSET
1,1
COMMENTS
The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k), so these are numbers with at least two adjacent prime indices of quotient 1/2.
EXAMPLE
The terms and corresponding partitions begin:
6: (2,1)
12: (2,1,1)
18: (2,2,1)
21: (4,2)
24: (2,1,1,1)
30: (3,2,1)
36: (2,2,1,1)
42: (4,2,1)
48: (2,1,1,1,1)
54: (2,2,2,1)
60: (3,2,1,1)
63: (4,2,2)
65: (6,3)
66: (5,2,1)
72: (2,2,1,1,1)
78: (6,2,1)
84: (4,2,1,1)
90: (3,2,2,1)
96: (2,1,1,1,1,1)
MATHEMATICA
primeptn[n_]:=If[n==1, {}, Reverse[Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]]];
Select[Range[100], MemberQ[Divide@@@Partition[primeptn[#], 2, 1], 2]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 20 2022
STATUS
approved