Reciprocal Pairs
Let’s call a pair of positive integers , () reciprocal, if there is a positive integer such that equals both the inverse of modulo and the inverse of modulo .
For example, is one reciprocal pair for .
Let be the total sum of for all reciprocal pairs where .
due to these four reciprocal pairs , , and .
You are also given .
Find .
模倒数对
对于正整数和(满足),若存在正整数使得同时是同余的逆元和同余的逆元,则称这两个正整数互为模倒数。
例如,是一组模倒数对,其对应的。
对所有满足的模倒数对,记为所有之和。
例如,,因为共有四组模倒数对、、和。
已知。
求。
Gitalking ...