#P5850. calc加强版
calc加强版
Description
A sequence is valid if and only if:
- Its length is the given .
- are all integers in .
- are pairwise distinct.
The value of a sequence is defined as the product of all numbers in it, i.e., .
Find the sum of the values of all different valid sequences.
Two sequences are different if and only if they differ at any position.
Output the answer modulo .
Input Format
One line with two numbers .
Output Format
There are lines in total.
On the -th line , output the answer when .
13 8
91
7462
546546
35387352
3869654
396558319
363789591
879373476
Hint
:.
:,it is recommended to use an efficient output method.
For all testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号