InterviewBit Academy is now Scaler!
InterviewBit Academy is now Scaler Academy!

Sum of divisor of N factorial

Given an integer A, find the sum of divisors of A! modulo 1000000007.

</br>

Input Format:

    The First and only argument of input contains a single integer A

Output Format:

    Return a single integer denoting the sum of divisors modulo 1000000007.

Constraints:

    1 <= A <= 400000

For Example:

Example Input 1:
    A = 2
Example Output 1:
    3
Explanation 1:
    2! = 2, divisors = 1, 2
    
Example Input 2:
    A = 3
Example Output 2:
    12
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.
Start solving Sum of divisor of N factorial on Interview Code Editor
Sign Up
to access hints and editorial solutions for Sum of divisor of N factorial

Discussion


Loading...
Click here to start solving coding interview questions