Problem Archive

An ascent of a column $j$ in a matrix occurs if the value of column $j$ is smaller than the value of column $j + 1$ in all rows.

Let $P(k, r, n)$ be the number of $r \times n$ matrices with the following properties:

For example, $P(1, 2, 3) = 19$, $P(2, 4, 6) = 65508751$ and $P(7, 5, 30) \bmod 1000000123 = 161858102$.

Let $Q(n) = \displaystyle \sum_{k=1}^n P(k, n, n)$.
For example, $Q(5) = 21879393751$ and $Q(50) \bmod 1000000123 = 819573537$.

Find $Q(50000) \bmod 1000000123$.

Solution
No solution yet. Write yours at solutions/s559.md.
Problems sourced from Project Euler · Non-commercial & educational use only · CC BY-NC-SA 4.0