OFFSET
0,3
COMMENTS
For a partition P of n into parts (n_1, n_2, ..., n_k), the Shannon diversity index is S(P) = -Sum_{i=1..k} (n_i/n)*log(n_i/n). a(n) is the number of distinct values that S(P) obtains across all possible partitions P of n.
LINKS
Bradley K. Moon and Noah A. Rosenberg, Integer Sequences for Diversity Statistics, J. Int. Seq. 29(1) (2026), 26.1.5. See pp. 1, 6.
EXAMPLE
For n=0 through 7, each partition of n produces a distinct value of the Shannon diversity index, so that a(n) is equal to the number of partitions, A000041(n).
For n=8, partitions (2,2,2,2) and (4,1,1,1,1) both have the same Shannon diversity index, 2*log(2), so that a(8) = 21, one less than A000041(8).
CROSSREFS
KEYWORD
nonn
AUTHOR
Noah A Rosenberg, May 05 2025
EXTENSIONS
Data corrected by Noah A Rosenberg, Dec 02 2025
STATUS
approved
