Post a New Question

Data Structures and Algorithms

posted by on .

Given integers R,M with M≠0, let S(R,M) denote the smallest positive integer x satisfying the congruence
Rx≡1(mod M)
if such an x exists. If such an x does not exist, put S(R,M)=0.

Each line of this text file contains a pair of space separated integers representing R and M, respectively.

Let L be the list of integers whose k-th element is the value of S(R,M), where R and M are taken from the k-th line of the text file.

Let T be the sum of all elements of L. What are the last three digits of T?

  • Data Structures and Algorithms - ,

    how can i give the link ??

  • Data Structures and Algorithms - ,

    545

  • Data Structures and Algorithms - ,

    Only a few of us are permitted to post links here.

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question