OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harry J. Smith)
FORMULA
a(n) = Sum_{i=1..tau(n)} i*d_i, where {d_i}, i=1..tau(n) is the increasing sequence of divisors of n.
From Ridouane Oudra, Aug 01 2025: (Start)
a(n) = Sum_{d|n} (n/d)*A135539(n,d).
EXAMPLE
a(6) = max(1,1)+max(1,2)+max(1,3)+max(1,6)+max(2,2)+max(2,3)+max(2,6)+max(3,3)+max(3,6)+max(6,6)=38, or a(6) = dot_product(1,2,3,4)*(1,2,3,6)=1*1+2*2+3*3+4*6=38.
MAPLE
with(numtheory): seq(add(i*sort(convert(divisors(n), 'list'))[i], i=1..tau(n)), n=1..200);
MATHEMATICA
A064944[n_] := #.Range[Length[#]] & [Divisors[n]];
Array[A064944, 100] (* Paolo Xausa, Aug 07 2025 *)
PROG
(PARI) a(n) = my(d=divisors(n)); sum(i=1, length(d), i*d[i]); \\ Harry J. Smith, Sep 30 2009
(Haskell)
a064944 = sum . zipWith (*) [1..] . a027750_row'
-- Reinhard Zumkeller, Jul 14 2015
(Python)
from sympy import divisors
def A064944(n): return sum(a*b for a, b in enumerate(divisors(n), 1)) # Chai Wah Wu, Aug 07 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Oct 28 2001
STATUS
approved
