Problem 789
Minimal pairing modulo
Given an odd prime
The total cost of a pairing is the sum of the costs of its pairs. We say that such pairing is optimal if its total cost is minimal for that
For example, if
The cost product of a pairing is the product of the costs of its pairs. For example, the cost product of the optimal pairing for
It turns out that all optimal pairings for
Find the value of this product.
模 余数的最优配对
对于给定的奇质数
一组配对的总成本是其中每一整数对的成本之和。对于
例如,若
一组配对的成本积是其中每一整数对的成本的乘积。例如,上述
已知
求该成本积的值。
Gitalking ...