On the polynomial expressions for the number of ways of