#P1916H1. Matrix Rank (Easy Version)
Matrix Rank (Easy Version)
No submission language available for this problem.
Description
This is the easy version of the problem. The only differences between the two versions of this problem are the constraints on . You can make hacks only if all versions of the problem are solved.
You are given integers , and . is guaranteed to be a prime number.
For each from to , find the number of matrices of the field of integers modulo such that the rank of is exactly . Since these values are big, you are only required to output them modulo .
The first line of input contains three integers , and (, , ).
It is guaranteed that is a prime number.
Output integers, the answers for each from to .
Input
The first line of input contains three integers , and (, , ).
It is guaranteed that is a prime number.
Output
Output integers, the answers for each from to .