proposed
approved
proposed
approved
editing
proposed
Name corrected by Gus Wiseman, Jun 27 2020
Number of distinct consecutive subsequence-sums nonempty contiguous subsequences of the integer partition with Heinz number n.
a(n) = A335519(n) - 1.
The a(84) = 9 distinct consecutive subsequence-sums nonempty contiguous subsequences of (4,2,1,1) are (1, ), (2, 3, ), (4, 6, 7, 8, so a(84) = 7. Subsequences realizing these sums are , (1,1), (2,1), (4), (,2,1), (4,2,1,1), (4,2,1), (4,2,1,1).
approved
editing
proposed
approved
editing
proposed
allocated for Gus WisemanNumber of distinct consecutive subsequence-sums of the integer partition with Heinz number n.
0, 1, 1, 2, 1, 3, 1, 3, 2, 3, 1, 5, 1, 3, 3, 4, 1, 5, 1, 5, 3, 3, 1, 7, 2, 3, 3, 5, 1, 6, 1, 5, 3, 3, 3, 8, 1, 3, 3, 7, 1, 6, 1, 5, 5, 3, 1, 9, 2, 5, 3, 5, 1, 7, 3, 7, 3, 3, 1, 9, 1, 3, 5, 6, 3, 6, 1, 5, 3, 6, 1, 11, 1, 3, 5, 5, 3, 6, 1, 9, 4, 3, 1, 9, 3, 3, 3
1,4
The distinct consecutive subsequence-sums of (4,2,1,1) are 1, 2, 3, 4, 6, 7, 8, so a(84) = 7. Subsequences realizing these sums are (1), (2), (4), (2,1), (4,2), (4,2,1), (4,2,1,1).
Table[Length[Union[ReplaceList[If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]], {___, s__, ___}:>{s}]]], {n, 30}]
allocated
nonn
Gus Wiseman, May 20 2019
approved
editing