Write a function to compute the following sum:
y = sum_(d|n) (-1)^(n/d) phi(d)
where phi(d) is the totient function. The sum is computed over the divisors of n (including 1 and n). The input to the function will be two limits a and b. Compute y for a <= n <= b.

Solution Stats

13 Solutions

7 Solvers

Last Solution submitted on Jun 27, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...