|
|
|
|
|
The P(n,k) matrix is [1 0 0 0 0 0 0 0 0 0] [1 1 0 0 0 0 0 0 0 0] [1 1 1 0 0 0 0 0 0 0] [1 2 1 1 0 0 0 0 0 0] [1 2 2 1 1 0 0 0 0 0] [1 3 3 2 1 1 0 0 0 0] [1 3 4 3 2 1 1 0 0 0] [1 4 5 5 3 2 1 1 0 0] [1 4 7 6 5 3 2 1 1 0] [1 5 8 9 7 5 3 2 1 1] The mode for the rows for the P(n,k) matrix is [1, 1, 1, 2, 2, 2, 3, 3, 3, 4] If P(n,k) is unimodal up to n=10 print 1 1 Checking log-concavity for P(n,k) [0, 0, 0, 1, 1, 1, 1, 3, 3, 3] The P(n,k) matrix is [1 0 0 0 0 0 0 0 0 0] [1 1 0 0 0 0 0 0 0 0] [1 1 1 0 0 0 0 0 0 0] [1 2 1 1 0 0 0 0 0 0] [1 2 2 1 1 0 0 0 0 0] [1 3 3 2 1 1 0 0 0 0] [1 3 4 3 2 1 1 0 0 0] [1 4 5 5 3 2 1 1 0 0] [1 4 7 6 5 3 2 1 1 0] [1 5 8 9 7 5 3 2 1 1] The mode for the rows for the P(n,k) matrix is [1, 1, 1, 2, 2, 2, 3, 3, 3, 4] If P(n,k) is unimodal up to n=10 print 1 1 Checking log-concavity for P(n,k) [0, 0, 0, 1, 1, 1, 1, 3, 3, 3] |
|