| Sigma | R Documentation |
Sum of powers of all divisors of a natural number.
Sigma(n, k = 1, proper = FALSE) tau(n)
n |
Positive integer. |
k |
Numeric scalar, the exponent to be used. |
proper |
Logical; if |
Total sum of all integer divisors of n to the power of k,
including 1 and n.
For k=0 this is the number of divisors, for k=1
it is the sum of all divisors of n.
tau is Ramanujan's tau function, here computed using
Sigma(., 5) and Sigma(., 11).
A number is called refactorable, if tau(n) divides n,
for example n=12 or n=18.
Natural number, the number or sum of all divisors.
Works well up to 10^9.
https://en.wikipedia.org/wiki/Divisor_function
https://en.wikipedia.org/wiki/Ramanujan_tau_function
primeFactors, divisors
sapply(1:16, Sigma, k = 0) sapply(1:16, Sigma, k = 1) sapply(1:16, Sigma, proper = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.