OFFSET
1,2
COMMENTS
a(n) = a(n+1) for n=14, 14229, 194931, 8897930, 278110142, ... . - Michel Marcus, Jun 10 2015
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{i=1..tau(n)} (tau(n)-i+1)*d_i, where {d_i}, i=1..tau(n), is the increasing sequence of divisors of n.
EXAMPLE
a(6) = dot_product(4,3,2,1)*(1,2,3,6) = 4*1+3*2+2*3+1*6 = 22.
MAPLE
with(numtheory): seq(add((tau(n)-i+1)*sort(convert(divisors(n), 'list'))[i], i=1..tau(n)), n=1..200);
PROG
(PARI) { for (n=1, 1000, d=divisors(n); t=length(d); a=sum(i=1, t, (t - i + 1)*d[i]); write("b064945.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 01 2009
(PARI) a(n)=my(d=divisors(n)); sum(i=1, #d, (#d+1-i)*d[i]) \\ Charles R Greathouse IV, Jun 10 2015
(Haskell)
a064945 = sum . zipWith (*) [1..] . reverse . a027750_row'
-- Reinhard Zumkeller, Jul 14 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladeta Jovovic, Oct 28 2001
STATUS
approved