OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
EXAMPLE
For n = 4, A007955(n) = b(n): a(4) = b(1)*1 + b(2)*2 + b(4)*4 = 1*1 + 2*2 + 8*4 = 37.
PROG
(PARI) a(n)={sumdiv(n, d, vecprod(divisors(d))*d)} \\ Andrew Howroyd, Jan 05 2020
(Magma) [&+[&*Divisors(d)*d:d in Divisors(n)]:n in [1..40]]; // Marius A. Burtea, Jan 05 2020
(Python)
from math import isqrt
from sympy import divisor_count, divisors
def A174933(n): return sum(isqrt(d)**(c+2) if (c:=divisor_count(d)) & 1 else d**(c//2+1) for d in divisors(n, generator=True)) # Chai Wah Wu, Jun 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Apr 02 2010
EXTENSIONS
Terms a(31) and beyond from Andrew Howroyd, Jan 05 2020
STATUS
approved