OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
MATHEMATICA
a[n_] := DivisorSum[n, Mod[n/#, #] &]; Array[a, 100] (* Amiram Eldar, May 07 2022 *)
PROG
(Haskell)
import Math.NumberTheory.ArithmeticFunctions
a n = sum $ map (\d -> n `quot` d `rem` d) $ divisorsList n
(PARI) A353776(n) = sumdiv(n, d, ((n/d)%d)); \\ Antti Karttunen, May 08 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Sebastian Karlsson, May 07 2022
STATUS
approved