View Single Post
Old 2022-08-12, 07:51   #1
Aug 2022

1 Posts
Default 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 2022-08-12 at 09:40 Reason: fixed the formula
Adrian is offline   Reply With Quote