summation in pari gp
Is there any command to evaluate in PARI GP such sum: \(\sum\limits_{\substack{2\leq d\leq n \\ (d, n)=1}}\frac{a\left(n\right)}{d}\)?
In other words: how to add to command
sum(d=2, n, \frac{a(n)}{d})
condition from second line $(d,n)=1$) (or more such conditions)
Last fiddled with by LaurV on 20220812 at 09:40
Reason: fixed the formula
