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 .
毕达哥拉斯三元组频数
记为最小的、恰好出现在个毕达哥拉斯三元组中的数,其中。
例如,是最小的、恰好出现在个毕达哥拉斯三元组中的数:
因此。
已知,。
求,并将你的答案对取余。
Be the first person to leave a comment!