sigma.m

Given nonnegative integers k and n, sigma(k,n) is the sum of the kth powers of the divisors of n.

You are now following this Submission

Given nonnegative integers k and n, sigma(k,n) is the sum of the kth powers of the divisors of n. When k=0, this is just the number of divisors of n.

Note: This program requires first downloading factor2.m.

Cite As

David Terr (2026). sigma.m (https://se.mathworks.com/matlabcentral/fileexchange/4967-sigma-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Biological and Health Sciences in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

I updated this so that it works with my updated version of factor2.m (switched rows and columns).