Need solution which require math..

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

@vijju123 @taran_1407 @vivek_1998299 @meooow @john_smith_3 @aryanc403 @vbt_95

1 Like