← Complete problem index

PROJECT EULER · #0801

xyyx

Statement only · UnsolvedOriginal problem ↗

The positive integral solutions of the equation xy=yx are (2,4), (4,2) and (k,k) for all k>0.

For a given positive integer n, let f(n) be the number of integral values 0<x,yn2n such that xyyx(modn). For example, f(5)=104 and f(97)=1614336.

Let S(M,N)=f(p) where the sum is taken over all primes p satisfying MpN.

You are given S(1,102)=7381000 and S(1,105)701331986(mod993353399).

Find S(1016,1016+106). Give your answer modulo 993353399.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.