OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537 (first 1000 terms from T. D. Noe)
Carl Pomerance and Hee-Sung Yang, Variant of a theorem of Erdős on the sum-of-proper-divisors function, Mathematics of Computation 83.288 (2014): 1903-1913; alternative link.
FORMULA
Sum_{k=1..n} a(k) ~ c * n^2, where c = (zeta(2)/zeta(3) - 1)/2 = 0.1842163888... . - Amiram Eldar, Feb 22 2024
EXAMPLE
Unitary divisors of 12 are 1, 3, 4, 12. a(12) = 1 + 3 + 4 = 8.
MAPLE
MATHEMATICA
usigma[n_] := Sum[ If[GCD[d, n/d] == 1, d, 0], {d, Divisors[n]}]; a[n_] := usigma[n] - n; Table[ a[n], {n, 1, 82}] (* Jean-François Alcover, May 15 2012 *)
a[n_] := Times @@ (1 + Power @@@ FactorInteger[n]) - n; a[1] = 0; Array[a, 100] (* Amiram Eldar, Oct 03 2022 *)
PROG
(Haskell)
a034460 = sum . init . a077610_row -- Reinhard Zumkeller, Aug 15 2012
(PARI) a(n)=sumdivmult(n, d, if(gcd(d, n/d)==1, d))-n \\ Charles R Greathouse IV, Aug 01 2016
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
STATUS
approved