← Complete problem index

PROJECT EULER · #0515

Dissonant Numbers

Statement only · UnsolvedOriginal problem ↗

Let d(p,n,0) be the multiplicative inverse of n modulo prime p, defined as n×d(p,n,0)=1modp.
Let d(p,n,k)=i=1nd(p,i,k1) for k1.
Let D(a,b,k)=(d(p,p1,k)modp) for all primes ap<a+b.

You are given:

  • D(101,1,10)=45
  • D(103,102,102)=8334
  • D(106,103,103)=38162302

Find D(109,105,105).

Write-up coming later

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