827. Pythagorean Triple Occurrence

Define to be the smallest number that occurs in exactly Pythagorean triples where .

For example, is the smallest number occurring in exactly Pythagorean triples:

and so .

You are also given and .

Find . Give your answer modulo .

827. 在毕达哥拉斯三元组中的出现次数

记 为在所有 毕达哥拉斯三元组 (其中 )中恰好出现 次的最小正整数。

如 就是最小的,恰好在 个毕达哥拉斯三元组中出现的整数。因而 。

已知: 且 。

求 模 之值。


点 这个链接 回到源站。

点 这个链接 回到详细版题目目录。