Consider the following Diophantine equation:
where , and are positive integers.
Let where the sum is over all solutions such that and .
For , there are only two such solutions: and . So .
You are also given that (with solutions), and .
Find . Give your answer modulo .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.