Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Need solution which require math..

$
0
0

You are given a number N, we have to find the sum modulo 1e9+7 of a function which takes all number from 1 to N as input, function: given a number m calculate the x modulo m, where x is the product of number k iterating from 1 to m and (k, m) are coprimes, can I have a solution with math, code is not nescessary


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>