OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 0 (an empty sum).
a(10) = 5 as 10 = 2*5, therefore a(10) = (1^2)*1 + (2^2)*1 = 5
a(45) = 6 as 45 = 3^2 * 5, therefore a(45) = (1^2)*2 + (2^2)*1 = 6.
a(50) = 5 as 50 = 2^1 * 5^2, therefore a(50) = (1^2)*1 + (2^2)*2 = 9.
a(250) = 7 as 250 = 2^1 * 5^3, therefore a(250) = (1^2)*1 + (2^2)*3 = 13.
PROG
(PARI) weightedroundness2(n)=local(f, fl, s); f=factor(n); fl=length(f[, 1]); s=0; for (i=1, fl, s=s+i^2*f[, 2][i]); s alias(wr2, weightedroundness2) for (j=2, 500, print1(wr2(j)", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Dec 31 2002
EXTENSIONS
a(1) = 0 prepended and more examples by Antti Karttunen, May 31 2017
STATUS
approved