DivisorSum

DivisorSum[n,form]

represents the sum of form[i] for all i that divide n.

DivisorSum[n,form,cond]

includes only those divisors for which cond[i] gives True.

Details

  • n can be symbolic or a positive integer.
  • form and cond must be Function objects.
  • DivisorSum[n,form] is equivalent to Sum[form[d],{d,Divisors[n]}] for positive n.
  • DivisorSum[n,form,cond] is automatically simplified when n is a positive integer.
  • DivisorSum[n,form] is automatically simplified when form is a polynomial function.

Examples

open allclose all

Basic Examples  (1)

Evaluate at positive integers:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (6)

Applications  (4)

Properties & Relations  (1)

Possible Issues  (2)

See Also

DivisorSigma  Divisors  DirichletConvolve  DirichletTransform  MoebiusMu  Sum  RootSum

Introduced in 2008
(7.0)