784. 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 .

784. 互反数对1

我们称数对 ) 为互反数对,当且仅当存在一个正整数 ,使得 既为模 意义下 的乘法逆,也为模 意义下 的乘法逆。例如 是一对互反数对,令 即可。

为所有满足 的互反数对 之和。例如 ,因为共有 四个满足条件的互反数对。已知:


1 此处 reciprocal 的翻译参照「二次互反律(quadratic reciprocity)」。