OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
N:= 1000: # for a(1) .. a(N)
S:= [seq(numtheory:-sigma(n), n=1..N)]:
SS:= ListTools:-PartialSums(S):
seq(SS[n] - add(S[d], d = numtheory:-divisors(n)), n=1..N); # Robert Israel, Oct 27 2024
MATHEMATICA
f[n_] := Module[{s, i}, s = 0; For[i = 1, i < n, i++, If[Mod[n, i] != 0, s = s + DivisorSigma[1, i]]]; s]; Table[f[i], {i, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Oct 24 2002
STATUS
approved