OFFSET
1,2
COMMENTS
If n = Product (p_i^k_i) for i = 1, …, j then a(n) is sum of divisor d from set of divisors{1, p_1^k_1, p_2^k_2, …, p_j^k_j}.
FORMULA
EXAMPLE
For n = 12, set of divisors {1, p_1^k_1, p_2^k_2, …, p_j^k_j}: {1, 3, 4}. a(12) = 1+3+4=8.
MATHEMATICA
f[n_] := 1 + Plus @@ Power @@@ FactorInteger@ n; f[1] = 1; Array[f, 60]
PROG
(PARI) a(n)=local(t); if(n<1, 0, t=factor(n); 1+sum(k=1, matsize(t)[1], t[k, 1]^t[k, 2])) /* Anton Mosunov, Jan 05 2017 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Apr 04 2009
EXTENSIONS
Edited by N. J. A. Sloane, Apr 07 2009
STATUS
approved