OFFSET
1,2
COMMENTS
The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). This gives a bijective correspondence between positive integers and integer partitions.
An anti-run is a sequence with no adjacent equal parts. The minima of maximal anti-runs in a sequence are obtained by splitting it into maximal anti-run subsequences and taking the least term of each.
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
EXAMPLE
The prime indices of 540 are (1,1,2,2,2,3), with maximal anti-runs ((1),(1,2),(2),(2,3)), with minima (1,1,2,2), with Heinz number 36, so a(540) = 36.
The prime indices of 990 are (1,2,2,3,5), with maximal anti-runs ((1,2),(2,3,5)), with minima (1,2), with Heinz number 6, so a(990) = 6.
MATHEMATICA
Table[Times@@Prime/@If[n==1, {}, Min /@ Split[Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]], UnsameQ]], {n, 100}]
CROSSREFS
Firsts for omega (except first term) are half A061742.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 17 2024
STATUS
approved