OFFSET
1,2
COMMENTS
Not multiplicative. The least counterexample is 72 = 8*9: a(72) = 108, while a(8) * a(9) = 12 * 12 = 144. - Amiram Eldar, Sep 09 2023
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537
FORMULA
a(n) = Sum_{k=1..n} (1 - ceiling(n/k^2) + floor(n/k^2)) * mu(k)^2 * (n/k), where mu is the Möbius function (A008683). - Wesley Ivan Hurt, Jan 29 2021
MATHEMATICA
f[p_, e_] := (p^(e + 1) - 1)/(p - 1) - 1; a[1] = 1; a[n_] := a[n] = Module[{fct = FactorInteger[n]}, If[Max[fct[[;; , 2]]] < 3, Times @@ f @@@ fct, r = Times @@ fct[[;; , 1]]; r*a[n/r]]]; Array[a, 100] (* Amiram Eldar, Sep 09 2023 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 31 2020
EXTENSIONS
Keyword mult removed by Amiram Eldar, Sep 09 2023
STATUS
approved