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
↧