OFFSET
1,2
FORMULA
EXAMPLE
PROG
(PARI) a(n) = n*sum(k=1, n, n\k); \\ Michel Marcus, Mar 19 2016
(Python)
from math import isqrt
def A143274(n): return (-(s:=isqrt(n))**2+(sum(n//k for k in range(1, s+1))<<1))*n # Chai Wah Wu, Oct 23 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Aug 03 2008
EXTENSIONS
More terms from Eric M. Schmidt, Feb 28 2014
STATUS
approved