OFFSET
0,12
COMMENTS
We use the "rounding half to even" rule, see link.
LINKS
Wikipedia, Rounding.
EXAMPLE
Triangle begins:
1
0 1
0 1 1
0 1 1 1
0 2 2 0 1
0 2 4 0 0 1
0 2 5 3 0 0 1
0 4 7 0 3 0 0 1
0 4 8 5 4 0 0 0 1
0 4 14 7 4 0 0 0 0 1
0 7 21 8 0 5 0 0 0 0 1
0 7 22 11 10 0 5 0 0 0 0 1
0 7 36 15 12 0 6 0 0 0 0 0 1
0 12 32 36 14 0 6 0 0 0 0 0 0 1
0 12 53 23 23 16 0 7 0 0 0 0 0 0 1
0 12 80 30 27 19 0 0 7 0 0 0 0 0 0 1
Row n = 7 counts the following partitions:
. (31111) (511) . (61) . . (7)
(22111) (421) (52)
(211111) (4111) (43)
(1111111) (331)
(322)
(3211)
(2221)
MATHEMATICA
Table[If[n==k==0, 1, Length[Select[IntegerPartitions[n], Round[Mean[#]]==k&]]], {n, 0, 15}, {k, 0, n}]
KEYWORD
nonn,tabl
AUTHOR
Gus Wiseman, Jul 07 2023
STATUS
approved