OFFSET
1,21
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
MATHEMATICA
Table[DivisorSum[n, 1 &, And[Mod[#, 3] == 1, # != n] &] - DivisorSum[n, 1 &, And[Mod[#, 3] == 2, # != n] &], {n, 105}] (* Michael De Vlieger, Nov 08 2017 *)
Table[Total[Which[Mod[#, 3]==1, 1, Mod[#, 3]==2, -1, True, 0]&/@Most[ Divisors[ n]]], {n, 110}] (* Harvey P. Dale, Nov 26 2021 *)
PROG
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Antti Karttunen, Nov 06 2017
STATUS
approved