OFFSET
1,2
COMMENTS
The k-th part of the inner lining partition of an integer partition is the number of squares in its Young diagram that are k diagonal steps from the lower-right boundary. The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).
EXAMPLE
The partition with Heinz number 7865 is (6,5,5,3), with diagram
o o o o o o
o o o o o
o o o o o
o o o
which has diagonal distances
3 3 3 2 1 1
3 2 2 2 1
2 2 1 1 1
1 1 1
so the inner lining partition is (9,6,4), which has Heinz number 2093, so a(7865) = 2093.
MATHEMATICA
Table[Times@@Prime/@(-Differences[Total/@Take[FixedPointList[If[#=={}, {}, DeleteCases[Rest[#]-1, 0]]&, Reverse[Flatten[Cases[If[n==1, {}, FactorInteger[n]], {p_, k_}:>Table[PrimePi[p], {k}]]]]], {1, -2}]]), {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 05 2019
STATUS
approved