divisors SciMax Toolbox dkummer_m

SciMax Toolbox >> divsum

divsum

Maxima Function

Calling Sequence

divsum (n, k)
divsum(n)

Description

divsum (n, k) returns the sum of the divisors of n raised to the k'th power.

divsum (n) returns the sum of the divisors of n.

(%i1) divsum (12);
(%o1)                          28
(%i2) 1 + 2 + 3 + 4 + 6 + 12;
(%o2)                          28
(%i3) divsum (12, 2);
(%o3)                          210
(%i4) 1^2 + 2^2 + 3^2 + 4^2 + 6^2 + 12^2;
(%o4)                          210
divisors SciMax Toolbox dkummer_m